+ global $wgCanonicalServer;
+
+ if ( strpos( $url, "$wgCanonicalServer/" ) === 0 ) {
+ // Optimisation: Handle the the common case.
+ // (Duplicates self::getCanonicalServerInfoForAllWikis)
+ return self::getWikiIdFromDbDomain( self::getCurrentWikiDbDomain() );
+ }
+