Respect database prefix in dumpHTML.inc
authorRob Church <robchurch@users.mediawiki.org>
Tue, 17 Jan 2006 21:57:14 +0000 (21:57 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Tue, 17 Jan 2006 21:57:14 +0000 (21:57 +0000)
RELEASE-NOTES
maintenance/dumpHTML.inc

index 5bfcd0f..6542a4e 100644 (file)
@@ -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
index ee42525..057b221 100644 (file)
@@ -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";