aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-11-04 01:46:17 +0000
committerrvelices <rv-github@modusoptimus.com>2008-11-04 01:46:17 +0000
commit43b7a7e8726997f60dba12d54aaddef092dd7f6e (patch)
treee87b798c0ebe1078363b365ee5859444934edd8b /include/common.inc.php
parent17334bdba335cba27b747dbacb5f8bef92e2f957 (diff)
- removed some unused constants from constants.php
- removed some unused css rules - removed unused code git-svn-id: http://piwigo.org/svn/branches/2.0@2823 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/common.inc.php')
-rw-r--r--include/common.inc.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index 0b1a2b581..d31aefbb6 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -143,21 +143,15 @@ if (is_a_guest())
}
// template instance
-if
- (
- defined('IN_ADMIN') and IN_ADMIN
- )
-{
- // Admin template
- //$template = new Template(PHPWG_ROOT_PATH.'template/'.$user['admin_template'], $user['admin_theme'] );
+if ( defined('IN_ADMIN') and IN_ADMIN )
+{// Admin template
list($user['admin_template'], $user['admin_theme']) =
explode ('/', $conf['admin_layout']);
$template = new Template(PHPWG_ROOT_PATH.'admin/template/'
. $user['admin_template'], $user['admin_theme'] );
}
else
-{
- // Classic template
+{ // Classic template
$template = new Template(PHPWG_ROOT_PATH.'template/'
. $user['template'], $user['theme'] );
}