diff --git a/route.php b/route.php index f3d9d7a..ae04f30 100644 --- a/route.php +++ b/route.php @@ -69,6 +69,17 @@ class route $this->ratelimiter = new ratelimitfile (); } + /** Get / Set the debug level + * @param integer|null $val The value to set. If null, will return the actual + * value + */ + public function debug ($val = null) + { + if ($val === null) + return $this->debug; + $this->debug = intval ($val); + } + /** Return the baseURL of the site * Always finish with a slash * @param string|null $module The module name (if thereis one)