diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2006-10-14 00:56:15 +0000 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2006-10-14 00:56:15 +0000 |
commit | ff7a7f54a9e6e9844f29bac8ba5360739aa4a10b (patch) | |
tree | db4a6b532195bac99fd73daea4799663800add41 /includes | |
parent | 7080f0686c93aa8e81f9f60a93c46a05eec0e7dc (diff) |
Aktualisierung auf MediaWiki 1.8.2
Diffstat (limited to 'includes')
-rw-r--r-- | includes/DefaultSettings.php | 2 | ||||
-rw-r--r-- | includes/Title.php | 13 |
2 files changed, 8 insertions, 7 deletions
diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index e4ce8e5e..767e551b 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -32,7 +32,7 @@ require_once( 'includes/SiteConfiguration.php' ); $wgConf = new SiteConfiguration; /** MediaWiki version number */ -$wgVersion = '1.8.1'; +$wgVersion = '1.8.2'; /** Name of the site. It must be changed in LocalSettings.php */ $wgSitename = 'MediaWiki'; diff --git a/includes/Title.php b/includes/Title.php index 0e86063e..4a5e7156 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -356,7 +356,7 @@ class Title { $lc = SearchEngine::legalSearchChars() . '&#;'; $t = $wgContLang->stripForSearch( $title ); $t = preg_replace( "/[^{$lc}]+/", ' ', $t ); - $t = strtolower( $t ); + $t = $wgContLang->lc( $t ); # Handle 's, s' $t = preg_replace( "/([{$lc}]+)'s( |$)/", "\\1 \\1's ", $t ); @@ -393,10 +393,10 @@ class Title { */ function getInterwikiLink( $key ) { global $wgMemc, $wgInterwikiExpiry; - global $wgInterwikiCache; + global $wgInterwikiCache, $wgContLang; $fname = 'Title::getInterwikiLink'; - $key = strtolower( $key ); + $key = $wgContLang->lc( $key ); $k = wfMemcKey( 'interwiki', $key ); if( array_key_exists( $k, Title::$interwikiCache ) ) { @@ -1447,7 +1447,7 @@ class Title { do { if ( preg_match( "/^(.+?)_*:_*(.*)$/S", $t, $m ) ) { $p = $m[1]; - $lowerNs = strtolower( $p ); + $lowerNs = $wgContLang->lc( $p ); if ( $ns = Namespace::getCanonicalIndex( $lowerNs ) ) { # Canonical namespace $t = $m[2]; @@ -1465,7 +1465,7 @@ class Title { # Interwiki link $t = $m[2]; - $this->mInterwiki = strtolower( $p ); + $this->mInterwiki = $wgContLang->lc( $p ); # Redundant interwiki prefix to the local wiki if ( 0 == strcasecmp( $this->mInterwiki, $wgLocalInterwiki ) ) { @@ -2309,6 +2309,7 @@ class Title { * @return string */ function getNamespaceKey() { + global $wgContLang; switch ($this->getNamespace()) { case NS_MAIN: case NS_TALK: @@ -2339,7 +2340,7 @@ class Title { case NS_CATEGORY_TALK: return 'nstab-category'; default: - return 'nstab-' . strtolower( $this->getSubjectNsText() ); + return 'nstab-' . $wgContLang->lc( $this->getSubjectNsText() ); } } } |