diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-11-04 01:47:48 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-11-04 01:47:48 +0000 |
commit | ad2941220f67f425d83f7922da1a6e09f8d7f170 (patch) | |
tree | 6b69fcf4f2f679ffbb399f92707a6bce8de1a202 /include/common.inc.php | |
parent | 00beb5d3ad932d5c767906755d1ccad107c38f8f (diff) |
merge -c2823 from branch 2.0 to trunk
- removed some unused constants from constants.php
- removed some unused css rules
- removed unused code
git-svn-id: http://piwigo.org/svn/trunk@2824 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/common.inc.php | 12 |
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'] ); } |