]> git.mxchange.org Git - friendica.git/blobdiff - include/api.php
don't use load_view_file() except in email templates and install of htconfig - to...
[friendica.git] / include / api.php
index 82790a6383f8a329bbe2cd7caed36416c8b811cf..0753962ab983621a0db8985afff378e50807dc03 100644 (file)
                        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":