Massive upgrade
This commit is contained in:
parent
99a9ed919e
commit
c1a3437f9b
396 changed files with 29083 additions and 31939 deletions
|
@ -26,7 +26,9 @@
|
|||
*/
|
||||
|
||||
$module["core"]["name"]="Ajax Class";
|
||||
$module["core"]["ver"]="0.5.0";
|
||||
$module["core"]["ver"]="0.6.0";
|
||||
|
||||
use Smarty\Smarty;
|
||||
|
||||
class ajax{
|
||||
var $db;
|
||||
|
@ -60,16 +62,16 @@ class ajax{
|
|||
$mod = new $task();
|
||||
$root = $_SERVER['DOCUMENT_ROOT'] . $config["path"];
|
||||
if(isset($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"]) && 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');
|
||||
}
|
||||
|
||||
if($subtask!=""){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue