mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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
This commit is contained in:
+10
-1
@@ -28,7 +28,16 @@
|
||||
//
|
||||
// Start output of page
|
||||
//
|
||||
$template->set_filenames(array('header'=>'header.tpl'));
|
||||
if (IN_ADMIN)
|
||||
{
|
||||
$template->set_rootdir(PHPWG_ROOT_PATH.'template/admin/'.$user['template']);
|
||||
$template->set_filenames(array('header'=>'header.tpl'));
|
||||
}
|
||||
else
|
||||
{
|
||||
$template->set_rootdir(PHPWG_ROOT_PATH.'template/public/'.$user['template']);
|
||||
$template->set_filenames(array('header'=>'header.tpl'));
|
||||
}
|
||||
|
||||
$template->assign_vars(
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user