diff options
author | Friendika <info@friendika.com> | 2011-05-10 23:35:31 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-05-10 23:35:31 -0700 |
commit | a00813497fccf295d72e35537599409b3f1eaa22 (patch) | |
tree | ff56cce12620a10117098af5103b8f3b2518b54f /mod | |
parent | 5903ea38f34bef5d47d1ba76f26c802b3112de70 (diff) | |
download | volse-hubzilla-a00813497fccf295d72e35537599409b3f1eaa22.tar.gz volse-hubzilla-a00813497fccf295d72e35537599409b3f1eaa22.tar.bz2 volse-hubzilla-a00813497fccf295d72e35537599409b3f1eaa22.zip |
bring back load_view_file for dispy templates
Diffstat (limited to 'mod')
-rw-r--r-- | mod/editpost.php | 4 | ||||
-rw-r--r-- | mod/message.php | 2 | ||||
-rw-r--r-- | mod/photos.php | 2 | ||||
-rw-r--r-- | mod/profile.php | 2 | ||||
-rw-r--r-- | mod/settings.php | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/mod/editpost.php b/mod/editpost.php index 523f64fd2..fd84fc26d 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -31,7 +31,7 @@ function editpost_content(&$a) { $o .= '<h2>' . t('Edit post') . '</h2>'; - $tpl = file_get_contents('view/jot-header.tpl'); + $tpl = load_view_file('view/jot-header.tpl'); $a->page['htmlhead'] .= replace_macros($tpl, array( '$baseurl' => $a->get_baseurl(), @@ -41,7 +41,7 @@ function editpost_content(&$a) { )); - $tpl = file_get_contents("view/jot.tpl"); + $tpl = load_view_file("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'; diff --git a/mod/message.php b/mod/message.php index 0f5650256..3a59359ce 100644 --- a/mod/message.php +++ b/mod/message.php @@ -120,7 +120,7 @@ function message_content(&$a) { $myprofile = $a->get_baseurl() . '/profile/' . $a->user['nickname']; - $tpl = file_get_contents('view/mail_head.tpl'); + $tpl = load_view_file('view/mail_head.tpl'); $header = replace_macros($tpl, array( '$messages' => t('Messages'), '$inbox' => t('Inbox'), diff --git a/mod/photos.php b/mod/photos.php index b10399215..70bb5ff3d 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -1247,7 +1247,7 @@ function photos_content(&$a) { $paginate = paginate($a); } - $photo_tpl = file_get_contents('view/photo_view.tpl'); + $photo_tpl = load_view_file('view/photo_view.tpl'); $o .= replace_macros($photo_tpl, array( '$id' => $ph[0]['id'], '$album' => array($album_link,$ph[0]['album']), diff --git a/mod/profile.php b/mod/profile.php index 0691c64b3..2af6f2429 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -104,7 +104,7 @@ function profile_content(&$a, $update = 0) { if(x($_GET,'tab')) $tab = notags(trim($_GET['tab'])); - $tpl = file_get_contents('view/profile_tabs.tpl'); + $tpl = load_view_file('view/profile_tabs.tpl'); $o .= replace_macros($tpl,array( '$url' => $a->get_baseurl() . '/' . $a->cmd, diff --git a/mod/settings.php b/mod/settings.php index 22dc794dc..99fe852ee 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -406,7 +406,7 @@ function settings_content(&$a) { '$basepath' => $a->get_hostname() )); - $stpl = file_get_contents('view/settings.tpl'); + $stpl = load_view_file('view/settings.tpl'); $celeb = ((($a->user['page-flags'] == PAGE_SOAPBOX) || ($a->user['page-flags'] == PAGE_COMMUNITY)) ? true : false); |