diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-16 19:12:01 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-16 19:12:01 +0000 |
commit | 5d14531af936a9ab2887fac9d1f056a1d712b051 (patch) | |
tree | dae9122156ba8f1f4f577b6412f7b4cf559aab2b /core | |
parent | bcb2230a6b081d17978f18458e6db756a3dbd6e1 (diff) |
Drop the call to render() and just use the View's __toString method to
print it out.
Diffstat (limited to 'core')
-rw-r--r-- | core/controllers/album.php | 2 | ||||
-rw-r--r-- | core/controllers/photo.php | 2 | ||||
-rw-r--r-- | core/controllers/rest.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/core/controllers/album.php b/core/controllers/album.php index 87e27ac5..1701e283 100644 --- a/core/controllers/album.php +++ b/core/controllers/album.php @@ -47,6 +47,6 @@ class Album_Controller extends Item_Controller { $template->set_global('user', Session::instance()->get('user', null)); $template->content = new View("album.html"); - print $template->render(); + print $template; } } diff --git a/core/controllers/photo.php b/core/controllers/photo.php index 4c3154bd..2a0153a2 100644 --- a/core/controllers/photo.php +++ b/core/controllers/photo.php @@ -42,6 +42,6 @@ class Photo_Controller extends Item_Controller { $template->set_global('user', Session::instance()->get('user', null)); $template->content = new View("photo.html"); - print $template->render(); + print $template; } } diff --git a/core/controllers/rest.php b/core/controllers/rest.php index 4a6c4eb4..aee4f527 100644 --- a/core/controllers/rest.php +++ b/core/controllers/rest.php @@ -72,7 +72,7 @@ abstract class REST_Controller extends Controller { if (Session::instance()->get("use_profiler", false)) { $profiler = new Profiler(); - print $profiler->render(); + $profiler->render(); } return; } |