From 5926e202041976aad63351e741973a35a41b67c1 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Sat, 3 Jan 2004 19:28:28 +0000 Subject: use correct define syntax, remove get_restrictions for user because they are now saved in the database git-svn-id: http://piwigo.org/svn/branches/release-1_3@240 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/init.inc.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/init.inc.php b/include/init.inc.php index 87059e4c9..19e308441 100644 --- a/include/init.inc.php +++ b/include/init.inc.php @@ -16,16 +16,14 @@ * the Free Software Foundation; * * * ***************************************************************************/ -define( PREFIX_INCLUDE, '' ); +define( 'PREFIX_INCLUDE', '' ); include_once( './include/config.inc.php' ); include_once( './include/user.inc.php' ); // calculation of the number of picture to display per page $user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page']; -// retrieving the restrictions for this user -$user['restrictions'] = get_restrictions( $user['id'], $user['status'], true ); - + $isadmin = false; include_once( './language/'.$user['language'].'.php' ); // displaying the username in the language of the connected user, instead of -- cgit v1.2.3