X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Faction.php;h=9d3f74854e3fca2e2f72e32d2e31e4f21706c81a;hb=a0b9aeb43ef1b08e8dd7fe25101c515a0df53e7f;hp=5dff73906a620f186007ba6b90b54d6f0abb4b06;hpb=abd90bbdf562614755802885dfb5673645df8575;p=quix0rs-gnu-social.git diff --git a/lib/action.php b/lib/action.php index 5dff73906a..9d3f74854e 100644 --- a/lib/action.php +++ b/lib/action.php @@ -125,11 +125,10 @@ class Action extends HTMLOutputter // lawsuit } else { common_debug('Prepare failed for Action.'); } - } - - $this->flush(); - Event::handle('EndActionExecute', array($this)); + $this->flush(); + Event::handle('EndActionExecute', array($this)); + } } /** @@ -206,7 +205,7 @@ class Action extends HTMLOutputter // lawsuit * * @return nothing */ - function showPage() + public function showPage() { if (GNUsocial::isAjax()) { self::showAjax(); @@ -535,15 +534,11 @@ class Action extends HTMLOutputter // lawsuit */ function showFeeds() { - $feeds = $this->getFeeds(); - - if ($feeds) { - foreach ($feeds as $feed) { - $this->element('link', array('rel' => $feed->rel(), - 'href' => $feed->url, - 'type' => $feed->mimeType(), - 'title' => $feed->title)); - } + foreach ($this->getFeeds() as $feed) { + $this->element('link', array('rel' => $feed->rel(), + 'href' => $feed->url, + 'type' => $feed->mimeType(), + 'title' => $feed->title)); } } @@ -1036,9 +1031,9 @@ class Action extends HTMLOutputter // lawsuit function showExportData() { $feeds = $this->getFeeds(); - if ($feeds) { - $fl = new FeedList($this); - $fl->show($feeds); + if (!empty($feeds)) { + $fl = new FeedList($this, $feeds); + $fl->show(); } } @@ -1659,7 +1654,7 @@ class Action extends HTMLOutputter // lawsuit */ function getFeeds() { - return null; + return array(); } /**