Moved include to top

This commit is contained in:
Michael 2017-06-07 08:46:38 +00:00
parent 6e6941a546
commit 97fd47c614

View file

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