X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Frouter.php;h=e3a9203e4d9e53cf4f0ee2baede18d5f9e7da098;hb=65bf58be806d19bc7fe962c0824160deab07d5c3;hp=e956b02c631067f56c2aaa01397cbb23a54b7fdd;hpb=641018e95051b029dcd57a4eb304ee545230136a;p=quix0rs-gnu-social.git diff --git a/lib/router.php b/lib/router.php index e956b02c63..e3a9203e4d 100644 --- a/lib/router.php +++ b/lib/router.php @@ -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)) {