summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php
index 9068fe76981..7bebb5f93a0 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;
@@ -343,6 +344,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();