From: Aaron Schulz Date: Mon, 21 Apr 2008 00:53:13 +0000 (+0000) Subject: Lets include the prefix folks X-Git-Tag: 1.31.0-rc.0~48154 X-Git-Url: https://git.cyclocoop.org/?a=commitdiff_plain;h=e7ef014f9afb7829387fa15c275f8bc217829974;p=lhc%2Fweb%2Fwiklou.git Lets include the prefix folks --- diff --git a/includes/Title.php b/includes/Title.php index b6142f604d..14a3b2fb2e 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -3060,7 +3060,8 @@ class Title { public function getRedirectsHere() { $redirs = array(); $dbr = wfGetDB( DB_SLAVE ); - $result = $dbr->query( "SELECT page_title, page_namespace FROM page JOIN redirect ON page_id = rd_from WHERE rd_title = " + list($table,$redirect) = $dbr->tableNamesN( 'page', 'redirect' ); + $result = $dbr->query( "SELECT page_title, page_namespace FROM $table JOIN $redirect ON page_id = rd_from WHERE rd_title = " . $dbr->addQuotes( $this->getDBKey() ) . " AND rd_namespace = " . $this->getNamespace(), __METHOD__ ); while( $row = $dbr->fetchObject( $result ) ) { $redirs[] = self::newFromRow( $row );