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 /core/View.php | |
parent | 4658d92891093982d979e7ec8343ee4ccc510a38 (diff) |
getting rid of the fetch parameter
Diffstat (limited to 'core/View.php')
-rw-r--r-- | core/View.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/View.php b/core/View.php index 229de35dd9..6b8e5d9e94 100644 --- a/core/View.php +++ b/core/View.php @@ -346,15 +346,12 @@ class View implements ViewInterface * @param bool $fetch If true, return report contents as a string; otherwise echo to screen. * @return string|void The report contents if `$fetch` is true. */ - static public function singleReport($title, $reportHtml, $fetch = false) + static public function singleReport($title, $reportHtml) { $view = new View('@CoreHome/_singleReport'); $view->title = $title; $view->report = $reportHtml; - if ($fetch) { - return $view->render(); - } - echo $view->render(); + return $view->render(); } }
\ No newline at end of file |