Followup r78786: pass $fname in the raw SQL case too
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 31 Dec 2010 16:47:57 +0000 (16:47 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 31 Dec 2010 16:47:57 +0000 (16:47 +0000)
includes/QueryPage.php

index 480d74e..a45311f 100644 (file)
@@ -375,7 +375,7 @@ abstract class QueryPage extends SpecialPage {
                        $sql = $this->getSQL();
                        $sql .= ' ORDER BY ' . implode( ', ', $order );
                        $sql = $dbr->limitResult( $sql, $limit, $offset );
-                       $res = $dbr->query( $sql );
+                       $res = $dbr->query( $sql, $fname );
                }
                return $dbr->resultObject( $res );
        }