aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/index.php b/index.php
index e7227962f..1cb16778a 100644
--- a/index.php
+++ b/index.php
@@ -258,6 +258,18 @@ if($a->module_loaded) {
$func($a);
}
+ if(function_exists(str_replace('-','_',current_theme()) . '_init')) {
+ $func = str_replace('-','_',current_theme()) . '_init';
+ $func($a);
+ }
+// elseif (x($a->theme_info,"extends") && file_exists("view/theme/".$a->theme_info["extends"]."/theme.php")) {
+// require_once("view/theme/".$a->theme_info["extends"]."/theme.php");
+// if(function_exists(str_replace('-','_',$a->theme_info["extends"]) . '_init')) {
+// $func = str_replace('-','_',$a->theme_info["extends"]) . '_init';
+// $func($a);
+// }
+// }
+
if(($_SERVER['REQUEST_METHOD'] === 'POST') && (! $a->error)
&& (function_exists($a->module . '_post'))
&& (! x($_POST,'auth-params'))) {