]> git.mxchange.org Git - friendica.git/blobdiff - mod/editpost.php
don't use load_view_file() except in email templates and install of htconfig - to...
[friendica.git] / mod / editpost.php
index fd84fc26d5a4ba24f9ba386315221524854f7741..523f64fd2703b884ef7d82e3ce4fd131ba311bd3 100644 (file)
@@ -31,7 +31,7 @@ function editpost_content(&$a) {
 
        $o .= '<h2>' . t('Edit post') . '</h2>';
 
-       $tpl = load_view_file('view/jot-header.tpl');
+       $tpl = file_get_contents('view/jot-header.tpl');
        
        $a->page['htmlhead'] .= replace_macros($tpl, array(
                '$baseurl' => $a->get_baseurl(),
@@ -41,7 +41,7 @@ function editpost_content(&$a) {
        ));
 
 
-       $tpl = load_view_file("view/jot.tpl");
+       $tpl = file_get_contents("view/jot.tpl");
                
        if(($group) || (is_array($a->user) && ((strlen($a->user['allow_cid'])) || (strlen($a->user['allow_gid'])) || (strlen($a->user['deny_cid'])) || (strlen($a->user['deny_gid'])))))
                $lockstate = 'lock';