aboutsummaryrefslogtreecommitdiffstats
path: root/include/init.inc.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-01-03 19:28:28 +0000
committerz0rglub <z0rglub@piwigo.org>2004-01-03 19:28:28 +0000
commit5926e202041976aad63351e741973a35a41b67c1 (patch)
tree80671c3a77de09c76d4c9fc3ae21a3f83a0d5090 /include/init.inc.php
parent0f850e10ff2d314cfe624fac419c6474ffe49b58 (diff)
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
Diffstat (limited to '')
-rw-r--r--include/init.inc.php6
1 files 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