aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/api.php')
-rw-r--r--include/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/api.php b/include/api.php
index 82790a638..0753962ab 100644
--- a/include/api.php
+++ b/include/api.php
@@ -273,7 +273,7 @@
case "atom":
case "xml":
$data = api_xmlify($data);
- $tpl = load_view_file("view/api_".$templatename."_".$type.".tpl");
+ $tpl = file_get_contents("view/api_".$templatename."_".$type.".tpl");
$ret = replace_macros($tpl, $data);
break;
case "json":