]> git.mxchange.org Git - friendica.git/commitdiff
prepare for using a master theme_init()
authorfriendica <info@friendica.com>
Sun, 8 Apr 2012 13:20:57 +0000 (06:20 -0700)
committerfriendica <info@friendica.com>
Sun, 8 Apr 2012 13:20:57 +0000 (06:20 -0700)
index.php

index 69c224c1aadbb2446194b7d35b3a1464612d3cca..1cb16778a6d27d7242cf42dfa891c2f3b9506382 100644 (file)
--- 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'))