aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-07-27 08:23:32 +0000
committerz0rglub <z0rglub@piwigo.org>2003-07-27 08:23:32 +0000
commit4e775187b8d054835b179ff136ccd5ad5393711f (patch)
tree94d7fca71102a3a98038f8ed70466544ea40b860
parent8a1d713948d467e5c27e087d3165b2f6c227e4f4 (diff)
shortening the code
git-svn-id: http://piwigo.org/svn/trunk@44 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--include/init.inc.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/init.inc.php b/include/init.inc.php
index 823695753..0a8765cf9 100644
--- a/include/init.inc.php
+++ b/include/init.inc.php
@@ -28,9 +28,6 @@ $isadmin = false;
include_once( './language/'.$user['language'].'.php' );
// displaying the username in the language of the connected user, instead of
// "guest" as you can find in the database
-if ( $user['is_the_guest'] )
-{
- $user['username'] = $lang['guest'];
-}
+if ( $user['is_the_guest'] ) $user['username'] = $lang['guest'];
include_once( './template/'.$user['template'].'/htmlfunctions.inc.php' );
?> \ No newline at end of file