X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Frouter.php;h=9ba80515224f6edaed3db2547ce406e87387749e;hb=c97048d01bea468e0cf8865b60c3c250b4515c39;hp=a155c523724cf4c1d573bee5ffcf27036f5e908c;hpb=7e1ae44fad9dba14fc3bac75a9fcc666f210b82e;p=quix0rs-gnu-social.git diff --git a/lib/router.php b/lib/router.php index a155c52372..9ba8051522 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)) {