From d3867d1ae85e3a6f94af677e0b81388371e4e514 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 18 Dec 2004 08:11:32 +0000 Subject: [PATCH] * Fix message page caching behavior when $wgCapitalLinks is turned off after installation and the wiki is subsequently upgraded --- includes/MessageCache.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/MessageCache.php b/includes/MessageCache.php index 714f462544..86f95c7169 100755 --- a/includes/MessageCache.php +++ b/includes/MessageCache.php @@ -159,7 +159,9 @@ class MessageCache if ( !$this->mKeys ) { $this->mKeys = array(); foreach ( $wgAllMessagesEn as $key => $value ) { - array_push( $this->mKeys, $wgContLang->ucfirst( $key ) ); + global $wgCapitalLinks; + $title = $wgCapitalLinks ? $wgContLang->ucfirst( $key ) : $key; + array_push( $this->mKeys, $title ); } } return $this->mKeys; @@ -235,7 +237,8 @@ class MessageCache $message = false; if( !$this->mDisable && $useDB ) { - $title = $lang->ucfirst( $key ); + global $wgCapitalLinks; + $title = $wgCapitalLinks ? $lang->ucfirst( $key ) : $key; if( $langcode != $wgContLanguageCode ) { $title .= '/' . $langcode; } -- 2.20.1