Ensure that router is cleared when we do site setup; we can still fetch the data from cache, so it should stay fast, but should ensure that we don't end up with someone else's routes still set up, which may be an issue breaking some of the bookmark handling that needs routing with a rare plugin.
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)) {
*/
public static function init($server=null, $path=null, $conffile=null)
{
+ Router::clear();
+
StatusNet::initDefaults($server, $path);
StatusNet::loadConfigFile($conffile);