aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/main.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-03-01 22:02:42 +0100
committerKevin Chabowski <kevin@kch42.de>2012-03-01 22:02:42 +0100
commitacf697cd1bbc2749460332bd45ab098a4e367382 (patch)
tree90dfdf4ea722f964732e1ca612aa2a742250a175 /ratatoeskr/main.php
parenta940213bc467fce611854002e15b05fef5a0d3c8 (diff)
downloadratatoeskr-cms-acf697cd1bbc2749460332bd45ab098a4e367382.tar.gz
ratatoeskr-cms-acf697cd1bbc2749460332bd45ab098a4e367382.tar.bz2
ratatoeskr-cms-acf697cd1bbc2749460332bd45ab098a4e367382.zip
Debug now toggleable in backend; used new STE features.
* If __DEBUG__ is true, STE will be in a more verbose mode. * Ratatöskr's frontend STETags now uses the \ste\RuntimeError exception This will also be Beta 3
Diffstat (limited to 'ratatoeskr/main.php')
-rw-r--r--ratatoeskr/main.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/ratatoeskr/main.php b/ratatoeskr/main.php
index 2a424e7..f1a641f 100644
--- a/ratatoeskr/main.php
+++ b/ratatoeskr/main.php
@@ -51,6 +51,9 @@ function _ratatoeskr()
db_connect();
clean_database();
+ if(isset($ratatoeskr_settings["debugmode"]) and $ratatoeskr_settings["debugmode"])
+ define("__DEBUG__", True);
+
if(PLUGINS_ENABLED)
{
$activeplugins = array_filter(Plugin::all(), function($plugin) { return $plugin->active; });