]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/router.php
Fix a UI typo which appear when using $config['site']['indent'] = null
[quix0rs-gnu-social.git] / lib / router.php
index e956b02c631067f56c2aaa01397cbb23a54b7fdd..e3a9203e4d9e53cf4f0ee2baede18d5f9e7da098 100644 (file)
@@ -126,6 +126,15 @@ class Router
         return Router::$inst;
     }
 
+    /**
+     * Clear the global singleton instance for this class.
+     * Needed to ensure reset when switching site configurations.
+     */
+    static function clear()
+    {
+        Router::$inst = null;
+    }
+
     function __construct()
     {
         if (empty($this->m)) {