Changeset 1604 for trunk/index.php


Ignore:
Timestamp:
Nov 10, 2006, 2:10:42 AM (17 years ago)
Author:
rvelices
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r1537 r1604  
    3030include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
    3131include(PHPWG_ROOT_PATH.'include/section_init.inc.php');
     32
     33trigger_action('loc_begin_index');
    3234
    3335// +-----------------------------------------------------------------------+
     
    240242}
    241243//------------------------------------------------------- category informations
    242 if (
    243   $page['navigation_bar'] != ''
    244   or (isset($page['comment']) and $page['comment'] != '')
    245   )
    246 {
    247   $template->assign_block_vars('cat_infos',array());
    248 }
     244
    249245// navigation bar
    250246if ($page['navigation_bar'] != '')
     
    287283}
    288284
    289 if (isset($page['category']))
    290 {
    291   // category comment
    292   if (isset($page['comment']) and $page['comment'] != '')
    293   {
    294     $template->assign_block_vars(
    295       'cat_infos.comment',
    296       array(
    297         'COMMENTS' => $page['comment']
    298         )
    299       );
    300   }
     285// category comment
     286if (isset($page['comment']) and $page['comment'] != '')
     287{
     288  $template->assign_block_vars(
     289    'cat_infos.comment',
     290    array(
     291      'COMMENTS' => $page['comment']
     292      )
     293    );
    301294}
    302295//------------------------------------------------------------ log informations
    303296pwg_log('category', $page['title']);
    304297
     298trigger_action('loc_end_index');
    305299$template->parse('index');
    306300include(PHPWG_ROOT_PATH.'include/page_tail.php');
Note: See TracChangeset for help on using the changeset viewer.