summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_theme.php
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2010-02-28 13:09:57 -0800
committerAndy Staudacher <andy.st@gmail.com>2010-02-28 13:09:57 -0800
commit107909043add11045c76866564dead06a3385fb6 (patch)
treec6a7e2cc5ed3c3d354d8cca153c68f4ecb90ab6d /modules/gallery/helpers/gallery_theme.php
parent70837b5212966e173c886c376fae20a29cee8737 (diff)
Fix profiler display: It looks like it was broken by an API change in the latest kohana upgrade.
Diffstat (limited to 'modules/gallery/helpers/gallery_theme.php')
-rw-r--r--modules/gallery/helpers/gallery_theme.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_theme.php b/modules/gallery/helpers/gallery_theme.php
index d6944323..7f2d4ec7 100644
--- a/modules/gallery/helpers/gallery_theme.php
+++ b/modules/gallery/helpers/gallery_theme.php
@@ -71,6 +71,7 @@ class gallery_theme_Core {
static function page_bottom($theme) {
$session = Session::instance();
if ($session->get("profiler", false)) {
+ Profiler::enable();
$profiler = new Profiler();
$profiler->render();
}
@@ -87,6 +88,7 @@ class gallery_theme_Core {
static function admin_page_bottom($theme) {
$session = Session::instance();
if ($session->get("profiler", false)) {
+ Profiler::enable();
$profiler = new Profiler();
$profiler->render();
}