diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-11-18 07:02:19 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-11-18 07:02:19 +0400 |
commit | 9060f0180cb935efd1925942d3a8ce1cf309459a (patch) | |
tree | b474d8758f3b45063e4bd430f5daa028b369c879 /plugins/ExampleRssWidget/Controller.php | |
parent | 4658d92891093982d979e7ec8343ee4ccc510a38 (diff) |
getting rid of the fetch parameter
Diffstat (limited to 'plugins/ExampleRssWidget/Controller.php')
-rw-r--r-- | plugins/ExampleRssWidget/Controller.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/ExampleRssWidget/Controller.php b/plugins/ExampleRssWidget/Controller.php index 12058ca7a9..fe3a7551a5 100644 --- a/plugins/ExampleRssWidget/Controller.php +++ b/plugins/ExampleRssWidget/Controller.php @@ -25,9 +25,9 @@ class Controller extends \Piwik\Plugin\Controller try { $rss = new RssRenderer('http://feeds.feedburner.com/Piwik'); $rss->showDescription(true); - echo $rss->get(); + return $rss->get(); } catch (Exception $e) { - $this->error($e); + return $this->error($e); } } @@ -38,9 +38,9 @@ class Controller extends \Piwik\Plugin\Controller $rss->setCountPosts(1); $rss->showDescription(true); $rss->showContent(false); - echo $rss->get(); + return $rss->get(); } catch (Exception $e) { - $this->error($e); + return $this->error($e); } } @@ -49,7 +49,7 @@ class Controller extends \Piwik\Plugin\Controller */ protected function error($e) { - echo '<div class="pk-emptyDataTable">' + return '<div class="pk-emptyDataTable">' . Piwik::translate('General_ErrorRequest') . ' - ' . $e->getMessage() . '</div>'; } |