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 0753962ab..84cb7b38f 100644
--- a/include/api.php
+++ b/include/api.php
@@ -273,7 +273,7 @@
case "atom":
case "xml":
$data = api_xmlify($data);
- $tpl = file_get_contents("view/api_".$templatename."_".$type.".tpl");
+ $tpl = get_markup_template("api_".$templatename."_".$type.".tpl");
$ret = replace_macros($tpl, $data);
break;
case "json":