]> git.mxchange.org Git - friendica.git/blobdiff - include/text.php
simplify by making Smarty include directives behave like Friendica native ones
[friendica.git] / include / text.php
index 0591390a84f5a628736ddb137d1f584a6ff2eeb6..58f69449f4cb3ecf0b2aa3728c8db82a75fd739d 100644 (file)
@@ -477,6 +477,7 @@ function get_markup_template($s, $root = '') {
 //             $tt = microtime() - $ts;
 //             $a->page['debug'] .= "$tt <br>\n";
 //             return $file_contents;
+//             logger($template_file);
                return file_get_contents($template_file);
        }       
 }}
@@ -499,21 +500,6 @@ function get_template_file($a, $filename, $root = '') {
        return $template_file;
 }}
 
-if(! function_exists("set_template_includes")) {
-function set_template_includes($engine, $includes) {
-       if($engine === 'smarty3') {
-               $a = get_app();
-               foreach($includes as $name=>$path) {
-//                     $sm_includes[$name] = $_SERVER['DOCUMENT_ROOT'] . '/' . get_template_file($a, 'smarty3/' . $path);
-                       $sm_includes[$name] = get_template_file($a, 'smarty3/' . $path);
-               }
-               return $sm_includes;
-       }
-       else {
-               return $includes;
-       }
-}}
-