On ĵaŭ, 2003-02-13 at 10:35, Magnus Manske wrote:
Yes, but prior suggestions of that were turned down
due to the
additional database traffic. But, I guess a single query more won't hurt :-)
I can assure you, there's *far* more database traffic from checking the
existence of various linked pages (those linked in the header text as
well as user pages and user talk pages linked throughout the list).
Old code:
$wgOut->addWikiText( wfMsg( "recentchangestext" ) );
New code:
$rctext = wfMsg( "recentchangestext" );
$sql = "SELECT cur_text FROM cur WHERE cur_namespace=4 AND
cur_title='Recentchanges'";
$res = wfQuery( $sql, $fname );
if( ( $s = wfFetchObject( $res ) ) and ( $s->cur_text != "" ) ) {
$rctext = $s->cur_text;
}
$wgOut->addWikiText( $rctext );
-- brion vibber (brion @
pobox.com)