summaryrefslogtreecommitdiff
path: root/modules/rest/helpers/rest.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-01-23 18:03:09 -0500
committerBharat Mediratta <bharat@menalto.com>2013-01-23 18:03:09 -0500
commita1a66004571c2f6161335f9413b39d255190f153 (patch)
tree9b1403c7ea35db20772c18ee7d1d11742f5b6b56 /modules/rest/helpers/rest.php
parentd928064f0b7b4f12ce1371d7e0e61f6832f09a01 (diff)
Enable the profiler and debug output if var/PROFILE exists. This
provides a quick/easy way for server admins to provide profile output. Fixes #1959.
Diffstat (limited to 'modules/rest/helpers/rest.php')
-rw-r--r--modules/rest/helpers/rest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/rest/helpers/rest.php b/modules/rest/helpers/rest.php
index eeedff2a..9b367feb 100644
--- a/modules/rest/helpers/rest.php
+++ b/modules/rest/helpers/rest.php
@@ -54,7 +54,7 @@ class rest_Core {
$html = t("Empty response");
}
print "<pre>$html</pre>";
- if (Session::instance()->get("profiler", false)) {
+ if (gallery::show_profiler()) {
Profiler::enable();
$profiler = new Profiler();
$profiler->render();