]> git.mxchange.org Git - friendica.git/blobdiff - src/Render/FriendicaSmartyEngine.php
Remove/replace killme() with *exit()
[friendica.git] / src / Render / FriendicaSmartyEngine.php
index 2b6d7a877b31e613da744f850c53882eeee01906..54295684cc70c4ddc95779798d8d75f47d9a543f 100644 (file)
@@ -19,7 +19,7 @@ class FriendicaSmartyEngine implements ITemplateEngine
        {
                if (!is_writable('view/smarty3/')) {
                        echo "<b>ERROR:</b> folder <tt>view/smarty3/</tt> must be writable by webserver.";
-                       killme();
+                       exit();
                }
        }
 
@@ -32,7 +32,7 @@ class FriendicaSmartyEngine implements ITemplateEngine
                        $s = new FriendicaSmarty();
                }
 
-               $r['$APP'] = get_app();
+               $r['$APP'] = \get_app();
 
                // "middleware": inject variables into templates
                $arr = [
@@ -54,7 +54,7 @@ class FriendicaSmartyEngine implements ITemplateEngine
 
        public function getTemplateFile($file, $root = '')
        {
-               $a = get_app();
+               $a = \get_app();
                $template = new FriendicaSmarty();
 
                // Make sure $root ends with a slash /