From 5c0446975516f2b52b6cf51618e0b75af56de71b Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 8 Apr 2012 06:20:57 -0700 Subject: [PATCH] prepare for using a master theme_init() --- index.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.php b/index.php index 69c224c1aa..1cb16778a6 100644 --- a/index.php +++ b/index.php @@ -262,6 +262,13 @@ if($a->module_loaded) { $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')) -- 2.39.5