X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSiteConfiguration.php;h=c3b1a6ac7ff8aa97ed15985e028c8e7a610b1228;hb=dc26528eeaa9a8a37ddab8218f5fa6b97f5a9122;hp=b8775440994f7525f2d6a319f7a5957c304c27d6;hpb=e054e34af8dcda9c454c8cb04caa0d55d0d3c5af;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SiteConfiguration.php b/includes/SiteConfiguration.php index b877544099..c3b1a6ac7f 100644 --- a/includes/SiteConfiguration.php +++ b/includes/SiteConfiguration.php @@ -133,6 +133,8 @@ class SiteConfiguration { /** * Array of domains that are local and can be handled by the same server + * + * @deprecated since 1.25; use $wgLocalVirtualHosts instead. */ public $localVHosts = array(); @@ -532,7 +534,7 @@ class SiteConfiguration { if ( isset( $this->cfgCache[$wiki] ) ) { $res = array_intersect_key( $this->cfgCache[$wiki], array_flip( $settings ) ); if ( count( $res ) == count( $settings ) ) { - return $res; // cache hit + return $multi ? $res : current( $res ); // cache hit } } elseif ( !in_array( $wiki, $this->wikis ) ) { throw new MWException( "No such wiki '$wiki'." ); @@ -565,6 +567,8 @@ class SiteConfiguration { /** * Returns true if the given vhost is handled locally. + * + * @deprecated since 1.25; check if the host is in $wgLocalVirtualHosts instead. * @param string $vhost * @return bool */