aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile_photo.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-22 18:00:19 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-22 18:00:19 -0700
commitd5a13b1e4c0f35445aa539ff6b3779062907a9cb (patch)
tree1cc8fd26bb33981c2ab676a20aadec9d93b865ce /mod/profile_photo.php
parent124129e2a06a6ae82c283c8c10b7c3c7d0a0fdae (diff)
downloadvolse-hubzilla-d5a13b1e4c0f35445aa539ff6b3779062907a9cb.tar.gz
volse-hubzilla-d5a13b1e4c0f35445aa539ff6b3779062907a9cb.tar.bz2
volse-hubzilla-d5a13b1e4c0f35445aa539ff6b3779062907a9cb.zip
localisation path for all view templates
Diffstat (limited to 'mod/profile_photo.php')
-rw-r--r--mod/profile_photo.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/profile_photo.php b/mod/profile_photo.php
index e431e059d..b7aaf6c13 100644
--- a/mod/profile_photo.php
+++ b/mod/profile_photo.php
@@ -139,7 +139,7 @@ function profile_photo_post(&$a) {
$a->config['imagecrop'] = $hash;
$a->config['imagecrop_resolution'] = $smallest;
- $a->page['htmlhead'] .= file_get_contents("view/crophead.tpl");
+ $a->page['htmlhead'] .= load_view_file("view/crophead.tpl");
return;
}
@@ -154,7 +154,7 @@ function profile_photo_content(&$a) {
if(! x($a->config,'imagecrop')) {
- $tpl = file_get_contents('view/profile_photo.tpl');
+ $tpl = load_view_file('view/profile_photo.tpl');
$o .= replace_macros($tpl,array(
@@ -165,7 +165,7 @@ function profile_photo_content(&$a) {
else {
$filename = $a->config['imagecrop'] . '-' . $a->config['imagecrop_resolution'] . '.jpg';
$resolution = $a->config['imagecrop_resolution'];
- $tpl = file_get_contents("view/cropbody.tpl");
+ $tpl = load_view_file("view/cropbody.tpl");
$o .= replace_macros($tpl,array(
'$filename' => $filename,
'$resource' => $a->config['imagecrop'] . '-' . $a->config['imagecrop_resolution'],