From: Antoine Musso Date: Sat, 21 Aug 2004 23:16:32 +0000 (+0000) Subject: removing call to the database for "recentchangestext". That's automaticly get by... X-Git-Tag: 1.5.0alpha1~2261 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=fa79dd7e8bf89ed1eb48504b22b1bf7c6af99671;p=lhc%2Fweb%2Fwiklou.git removing call to the database for "recentchangestext". That's automaticly get by calling wfMsg( "recentchangestext" ) --- diff --git a/includes/SpecialRecentchanges.php b/includes/SpecialRecentchanges.php index 744ffa446f..13e1ad854e 100644 --- a/includes/SpecialRecentchanges.php +++ b/includes/SpecialRecentchanges.php @@ -13,9 +13,7 @@ function wfSpecialRecentchanges( $par ) $feedFormat = $wgRequest->getVal( 'feed' ); $defaultDays = $wgUser->getOption( 'rcdays' ); - if ( !$defaultDays ) { - $defaultDays = 3; - } + if ( !$defaultDays ) { $defaultDays = 3; } $days = $wgRequest->getInt( 'days', $defaultDays ); $hideminor = $wgRequest->getBool( 'hideminor', $wgUser->getOption( 'hideminor' ) ) ? 1 : 0; @@ -47,13 +45,15 @@ function wfSpecialRecentchanges( $par ) } # The next few lines can probably be commented out now that wfMsg can get text from the DB - $rctext = $dbr->selectField( 'cur', 'cur_text', +/* $rctext = $dbr->selectField( 'cur', 'cur_text', array( 'cur_namespace' => NS_WIKIPEDIA, 'cur_title' => 'Recentchanges' ), $fname ); if( !$rctext ) { $rctext = wfMsg( "recentchangestext" ); - } + } */ + + $rctext = wfMsg( "recentchangestext" ); $wgOut->addWikiText( $rctext );