aboutsummaryrefslogtreecommitdiffstats
path: root/category.php
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-02-19 00:31:09 +0000
committergweltas <gweltas@piwigo.org>2004-02-19 00:31:09 +0000
commit78df1f97d366e5f9e4115c658ad91fab70717f29 (patch)
tree518126d0a8728d9a2c81155e6ce6527b74fbaf92 /category.php
parent19b4964996483b51338deedbdf1dafc6d7ec16d8 (diff)
Split of langage files
git-svn-id: http://piwigo.org/svn/trunk@364 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--category.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/category.php b/category.php
index 26c6c0a69..1b445efb3 100644
--- a/category.php
+++ b/category.php
@@ -26,8 +26,8 @@
// +-----------------------------------------------------------------------+
//--------------------------------------------------------------------- include
-$phpwg_root_path = './';
-include_once( $phpwg_root_path.'include/common.inc.php' );
+define('PHPWG_ROOT_PATH','./');
+include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
//---------------------------------------------------------------------- logout
if ( isset( $_GET['act'] )
and $_GET['act'] == 'logout'
@@ -189,7 +189,7 @@ foreach ( $page['structure'] as $category ) {
display_category( $category, '&nbsp;');
}
-// favorites management
+// authentification mode management
if ( !$user['is_the_guest'] )
{
// searching the number of favorite picture
@@ -198,6 +198,7 @@ if ( !$user['is_the_guest'] )
$result = mysql_query( $query );
$row = mysql_fetch_array( $result );
$template->assign_block_vars('favorites', array ('NB_FAV'=>$row['count']) );
+ $template->assign_block_vars('username', array());
}
//--------------------------------------------------------------------- summary
$sum_title = '';