From: Michael <heluecht@pirati.ca>
Date: Wed, 7 Jun 2017 08:46:38 +0000 (+0000)
Subject: Moved include to top
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=97fd47c614e0fe880a08ac06f243da6c07ed2afd;p=friendica.git

Moved include to top
---

diff --git a/mod/display.php b/mod/display.php
index e31b89998c..365b657615 100644
--- a/mod/display.php
+++ b/mod/display.php
@@ -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");