* Add + to $wgLegalTitleChars by default. Some sites may have occasional
problems with hard-to-reach pages, but it should be less trouble than
"I can't import dumps from Wikipedia" complaints
+* (bug 7460) Revert broken patch for bug 7226 which slows down
+ Special:Allmessages by a factor of 16
== Languages updated ==
*/
function wfSpecialAllmessages() {
global $wgOut, $wgRequest, $wgMessageCache, $wgTitle;
- global $wgUseDatabaseMessages, $wgLang, $wgContLang;
+ global $wgUseDatabaseMessages;
# The page isn't much use if the MediaWiki namespace is not being used
if( !$wgUseDatabaseMessages ) {
$first = true;
$sortedArray = array_merge( Language::getMessagesFor( 'en' ), $wgMessageCache->getExtensionMessagesFor( 'en' ) );
ksort( $sortedArray );
- $contentCode = $wgContLang->getCode();
- $fallback = Language::getFallbackFor( $wgLang->getCode() );
$messages = array();
$wgMessageCache->disableTransform();
- foreach ( array_keys( $sortedArray ) as $key ) {
- if ( $contentCode == $fallback ) {
- $messages[$key]['fallbackmsg'] = wfMsgNoDbForContent( $key );
- } else {
- $messages[$key]['fallbackmsg'] = wfMsgNoDb( "$key/$fallback" );
- }
+ foreach ( $sortedArray as $key => $value ) {
+ $messages[$key]['enmsg'] = $value;
$messages[$key]['statmsg'] = wfMsgNoDb( $key );
$messages[$key]['msg'] = wfMsg ( $key );
}
global $wgLang;
$txt = "\n\n\$messages = array(\n";
foreach( $messages as $key => $m ) {
- if($wgLang->getCode() != 'en' and $m['msg'] == $m['fallbackmsg'] ) {
+ if($wgLang->getCode() != 'en' and $m['msg'] == $m['enmsg'] ) {
//if (strstr($m['msg'],"\n")) {
// $txt.='/* ';
// $comment=' */';