]> git.mxchange.org Git - friendica.git/commitdiff
Moved include to top
authorMichael <heluecht@pirati.ca>
Wed, 7 Jun 2017 08:46:38 +0000 (08:46 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 7 Jun 2017 08:46:38 +0000 (08:46 +0000)
mod/display.php

index e31b89998cc6bd406b4f0825b735e493bea3f957..365b657615b699acae192f3bf62ae823408cb1d6 100644 (file)
@@ -2,6 +2,8 @@
 
 use Friendica\App;
 
+require_once('include/dfrn.php');
+
 function display_init(App $a) {
 
        if ((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
@@ -13,7 +15,6 @@ function display_init(App $a) {
 
        if ($a->argc == 3) {
                if (substr($a->argv[2], -5) == '.atom') {
-                       require_once('include/dfrn.php');
                        $item_id = substr($a->argv[2], 0, -5);
                        $xml = dfrn::itemFeed($item_id);
                        header("Content-type: application/atom+xml");