Massive upgrade
This commit is contained in:
parent
99a9ed919e
commit
c1a3437f9b
396 changed files with 29083 additions and 31939 deletions
|
@ -369,16 +369,16 @@ class Core{
|
|||
$mod->cookie=$_COOKIE;
|
||||
$root = $_SERVER['DOCUMENT_ROOT'] . $config['path'];
|
||||
if(isset($config['theme']) && $config['theme']!='' && is_dir($root . '/modules/'.$task.'/templates/'.$config['theme']) && !$mod -> uses_default_templates){
|
||||
$mod -> tpl-> template_dir = $root . '/modules/'.$task.'/templates/'.$config['theme'];
|
||||
$mod -> tpl-> setTemplateDir($root . '/modules/'.$task.'/templates/'.$config['theme']);
|
||||
}elseif($mod -> uses_default_templates){
|
||||
if(isset($config['theme']) && $config['theme']!='' && is_dir($root . '/themes/'.$config['theme'])){
|
||||
$mod -> tpl-> template_dir = $root . '/themes/'.$config['theme'];
|
||||
$mod -> tpl-> setTemplateDir($root . '/themes/'.$config['theme']);
|
||||
|
||||
}else{
|
||||
$mod -> tpl-> template_dir = $root . '/themes/default';
|
||||
$mod -> tpl-> setTemplateDir($root . '/themes/default');
|
||||
}
|
||||
}else{
|
||||
$mod -> tpl-> template_dir = $root . '/modules/'.$task.'/templates/default';
|
||||
$mod -> tpl-> setTemplateDir($root . '/modules/'.$task.'/templates/default');
|
||||
}
|
||||
|
||||
$meta.= $mod->redirect;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue