From 2d9fce80da92ef31f8a96b4719e0de1f6fedb9f0 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Tue, 17 Jan 2006 21:57:14 +0000 Subject: [PATCH] Respect database prefix in dumpHTML.inc --- RELEASE-NOTES | 1 + maintenance/dumpHTML.inc | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 5bfcd0f7b6..6542a4e10d 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -62,6 +62,7 @@ Database: * More accurate list of used templates on the edit page * More reliable cache invalidation when templates outside the template namespace are changed +* Respect database prefix in dumpHTML.inc Documentation: * (bug 3306) Document $wgLocalTZoffset diff --git a/maintenance/dumpHTML.inc b/maintenance/dumpHTML.inc index ee42525051..057b221912 100644 --- a/maintenance/dumpHTML.inc +++ b/maintenance/dumpHTML.inc @@ -174,9 +174,8 @@ class DumpHTML { $this->setupGlobals(); $dbr =& wfGetDB( DB_SLAVE ); - $categorylinks = $dbr->tableName( 'categorylinks' ); print "Selecting categories..."; - $sql = 'SELECT DISTINCT cl_to FROM categorylinks'; + $sql = 'SELECT DISTINCT cl_to FROM ' . $dbr->tableName( 'categorylinks' ); $res = $dbr->query( $sql, $fname ); print "\nWriting " . $dbr->numRows( $res ). " category pages\n"; -- 2.20.1