diff options
Diffstat (limited to '')
-rw-r--r-- | category.php | 7 |
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, ' '); } -// 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 = ''; |