From: Brion Vibber Date: Fri, 10 Dec 2004 03:20:23 +0000 (+0000) Subject: Fix for table prefix X-Git-Tag: 1.5.0alpha1~1118 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=63c060dbd4305097c671758833a24241cb3f4afd;p=lhc%2Fweb%2Fwiklou.git Fix for table prefix --- diff --git a/includes/SpecialAllmessages.php b/includes/SpecialAllmessages.php index a58f9f0d4d..d1e9c281b3 100644 --- a/includes/SpecialAllmessages.php +++ b/includes/SpecialAllmessages.php @@ -112,9 +112,10 @@ function makeHTMLText( $messages ) { NS_MEDIAWIKI => array(), NS_MEDIAWIKI_TALK => array() ); - $sql = "SELECT cur_namespace,cur_title FROM cur WHERE cur_namespace IN (" . NS_MEDIAWIKI . ", " . NS_MEDIAWIKI_TALK . ")"; $dbr =& wfGetDB( DB_SLAVE ); - $res = $dbr->query( $sql ); + $res = $dbr->select( 'cur', + array( 'cur_namespace', 'cur_title' ), + "cur_namespace IN (" . NS_MEDIAWIKI . ", " . NS_MEDIAWIKI_TALK . ")" ); while( $s = $dbr->fetchObject( $res ) ) { $pageExists[$s->cur_namespace][$s->cur_title] = true; }