aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-11-10 01:10:42 +0000
committerrvelices <rv-github@modusoptimus.com>2006-11-10 01:10:42 +0000
commit724671b669d5a0e5a2ffb684ffd4534584c52113 (patch)
tree0bbe2f62f2a325ee0060627e032c8b99b0b98341 /index.php
parente5e776a263ba63407893a28df379f2ac8152680c (diff)
git-svn-id: http://piwigo.org/svn/trunk@1604 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'index.php')
-rw-r--r--index.php30
1 files changed, 12 insertions, 18 deletions
diff --git a/index.php b/index.php
index 5b6d011c4..bd9755b85 100644
--- a/index.php
+++ b/index.php
@@ -30,6 +30,8 @@ define('PHPWG_ROOT_PATH','./');
include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
include(PHPWG_ROOT_PATH.'include/section_init.inc.php');
+trigger_action('loc_begin_index');
+
// +-----------------------------------------------------------------------+
// | Check Access and exit when user status is not ok |
// +-----------------------------------------------------------------------+
@@ -239,13 +241,7 @@ if (isset($page['thumbnails_include']))
include(PHPWG_ROOT_PATH.$page['thumbnails_include']);
}
//------------------------------------------------------- category informations
-if (
- $page['navigation_bar'] != ''
- or (isset($page['comment']) and $page['comment'] != '')
- )
-{
- $template->assign_block_vars('cat_infos',array());
-}
+
// navigation bar
if ($page['navigation_bar'] != '')
{
@@ -286,22 +282,20 @@ if (isset($page['cat_nb_images']) and $page['cat_nb_images'] > 0
}
}
-if (isset($page['category']))
+// category comment
+if (isset($page['comment']) and $page['comment'] != '')
{
- // category comment
- if (isset($page['comment']) and $page['comment'] != '')
- {
- $template->assign_block_vars(
- 'cat_infos.comment',
- array(
- 'COMMENTS' => $page['comment']
- )
- );
- }
+ $template->assign_block_vars(
+ 'cat_infos.comment',
+ array(
+ 'COMMENTS' => $page['comment']
+ )
+ );
}
//------------------------------------------------------------ log informations
pwg_log('category', $page['title']);
+trigger_action('loc_end_index');
$template->parse('index');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
?>