diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-07 05:49:45 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-07 05:49:45 +0000 |
commit | 6b5b5ec3a67c322b7566fc5e645008acf62e9dc6 (patch) | |
tree | 8f5a655853d3ee15da0b9e4a30d93e7a30973e5a /core/controllers | |
parent | c526a9cd2542ae10589f8b7736e173d720b7e794 (diff) |
Use jquery.cookie to keep the same tab open when you refresh
Add a switch to turn profiling on/off
Diffstat (limited to 'core/controllers')
-rw-r--r-- | core/controllers/welcome.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index 0106535a..791ee192 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -116,6 +116,11 @@ class Welcome_Controller extends Template_Controller { $this->auto_render = false; } + public function profiler() { + Session::instance()->set("use_profiler", $this->input->get("use_profiler", false)); + url::redirect("welcome"); + } + private function _get_config_errors() { $errors = array(); if (!file_exists(VARPATH)) { |