From: Brion Vibber Date: Sun, 31 Dec 2006 01:32:02 +0000 (+0000) Subject: fix regression -- bad query X-Git-Tag: 1.31.0-rc.0~54725 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=4a4593d3d33a00a2e8d1d3378361a435ba89e1f5;p=lhc%2Fweb%2Fwiklou.git fix regression -- bad query --- diff --git a/includes/Title.php b/includes/Title.php index 98e2dcefdd..40375a7707 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1335,7 +1335,7 @@ class Title { if( $this->exists() ) { if( !$this->mRestrictionsLoaded ) { $dbr =& wfGetDB( DB_SLAVE ); - $res = $dbr->selectField( 'page', 'page_restrictions', $this->getArticleId() ); + $res = $dbr->selectField( 'page', 'page_restrictions', array( 'page_id' => $this->getArticleId() ) ); $this->loadRestrictions( $res ); } return isset( $this->mRestrictions[$action] )