aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/base.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php
index 42182c21fb0..bf2c51f0ad3 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -69,8 +69,9 @@ class OC {
* check if owncloud runs in cli mode
*/
public static $CLI = false;
- /*
- * OC router
+
+ /**
+ * @var OC_Router
*/
protected static $router = null;
@@ -344,6 +345,9 @@ class OC {
return OC_Config::getValue('session_lifetime', 60 * 60 * 24);
}
+ /**
+ * @return OC_Router
+ */
public static function getRouter() {
if (!isset(OC::$router)) {
OC::$router = new OC_Router();