Changeset 688


Ignore:
Timestamp:
Jan 13, 2005, 11:18:49 AM (19 years ago)
Author:
plg
Message:
  • use template->parse instead of pparse. (exceptions for install.php and upgrade.php)
  • bug fixed : queries time and count were not displayed on a redirection
Location:
trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/about.php

    r675 r688  
    4646        );
    4747
    48 $template->pparse('about');
     48$template->parse('about');
    4949include(PHPWG_ROOT_PATH.'include/page_tail.php');
    5050?>
  • trunk/admin.php

    r675 r688  
    245245  $template->assign_vars(array ('ADMIN_CONTENT'=> '<div style="text-align:center">'.$lang['default_message'].'</div>') );
    246246}
    247 $template->pparse('admin');
     247$template->parse('admin');
    248248include(PHPWG_ROOT_PATH.'include/page_tail.php');
    249249// +-----------------------------------------------------------------------+
  • trunk/admin/search.php

    r675 r688  
    104104}
    105105
    106 $template->pparse('search');
     106$template->parse('search');
    107107include(PHPWG_ROOT_PATH.'include/page_tail.php');
    108108?>
  • trunk/category.php

    r675 r688  
    333333mysql_close();
    334334
    335 $template->pparse('category');
     335$template->parse('category');
    336336include(PHPWG_ROOT_PATH.'include/page_tail.php');
    337337?>
  • trunk/comments.php

    r675 r688  
    233233{
    234234  $template->assign_block_vars('title',array());
    235   $template->pparse('comments');
     235  $template->parse('comments');
    236236  include(PHPWG_ROOT_PATH.'include/page_tail.php');
    237237}
  • trunk/identification.php

    r675 r688  
    9999$template->assign_block_vars('free_access',array());
    100100//----------------------------------------------------------- html code display
    101 $template->pparse('identification');
     101$template->parse('identification');
    102102include(PHPWG_ROOT_PATH.'include/page_tail.php');
    103103?>
  • trunk/include/functions.inc.php

    r686 r688  
    544544function redirect( $url )
    545545{
    546   global $user, $template, $lang_info, $conf, $lang, $t2;
     546  global $user, $template, $lang_info, $conf, $lang, $t2, $page;
    547547
    548548  // $refresh, $url_link and $title are required for creating an automated
     
    551551  $url_link = $url;
    552552  $title = 'redirection';
     553
    553554  include( PHPWG_ROOT_PATH.'include/page_header.php' );
    554555 
    555556  $template->set_filenames( array( 'redirect' => 'redirect.tpl' ) );
    556   $template->pparse('redirect');
     557  $template->parse('redirect');
    557558 
    558559  include( PHPWG_ROOT_PATH.'include/page_tail.php' );
  • trunk/include/page_header.php

    r686 r688  
    5555}
    5656
    57 $template->pparse('header');
     57$template->parse('header');
    5858?>
  • trunk/include/page_tail.php

    r675 r688  
    6060//
    6161
    62 $template->pparse('tail');
     62$template->parse('tail');
     63
     64$template->p();
    6365?>
  • trunk/picture.php

    r675 r688  
    10301030mysql_close();
    10311031
    1032 $template->pparse('picture');
     1032$template->parse('picture');
    10331033include(PHPWG_ROOT_PATH.'include/page_tail.php');
    10341034?>
  • trunk/profile.php

    r675 r688  
    349349{
    350350  $template->assign_block_vars('modify.profile',array());
    351   $template->pparse('profile_body');
     351  $template->parse('profile_body');
    352352  include(PHPWG_ROOT_PATH.'include/page_tail.php');
    353353}
  • trunk/register.php

    r675 r688  
    8484}
    8585
    86 $template->pparse('register');
     86$template->parse('register');
    8787include(PHPWG_ROOT_PATH.'include/page_tail.php');
    8888?>
  • trunk/search.php

    r675 r688  
    270270pwg_log( 'search', $title );
    271271mysql_close();
    272 $template->pparse('search');
     272$template->parse('search');
    273273include(PHPWG_ROOT_PATH.'include/page_tail.php');
    274274?>
  • trunk/upload.php

    r675 r688  
    375375}
    376376//----------------------------------------------------------- html code display
    377 $template->pparse('upload');
     377$template->parse('upload');
    378378include(PHPWG_ROOT_PATH.'include/page_tail.php');
    379379?>
Note: See TracChangeset for help on using the changeset viewer.