aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.inc.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2006-06-18 12:04:59 +0000
committernikrou <nikrou@piwigo.org>2006-06-18 12:04:59 +0000
commit57cf3ba758cadf56e35aa030edf525e61a56cfc6 (patch)
treee5d0e5709285107f49130233e6f73874bd71f99e /include/common.inc.php
parent7457a64443e25650728bcbe47f4649e21c04f4e6 (diff)
Issue 426: first step; separation of admin and public into two templates
Need to simplify and delete files not needed git-svn-id: http://piwigo.org/svn/trunk@1363 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/common.inc.php')
-rw-r--r--include/common.inc.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index 8aeafb7bf..4fa11cec3 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -201,9 +201,17 @@ if ($user['is_the_guest'])
list($user['template'], $user['theme']) = explode('/', $user['template']);
// TODO : replace initial $user['template'] by $user['layout']
+if (IN_ADMIN)
+{
+ $template_root = 'admin';
+}
+else
+{
+ $template_root = 'public';
+}
include(
PHPWG_ROOT_PATH
- .'template/'.$user['template']
+ .'template/'.$template_root.'/'.$user['template']
.'/theme/'.$user['theme']
.'/themeconf.inc.php'
);