aboutsummaryrefslogtreecommitdiffstats
path: root/includes/SpecialPopularpages.php
diff options
context:
space:
mode:
authorTim Starling <tstarling@users.mediawiki.org>2004-07-18 08:48:43 +0000
committerTim Starling <tstarling@users.mediawiki.org>2004-07-18 08:48:43 +0000
commitac549401d4ddaf655ec47cd1e66092fdc83ab30b (patch)
tree44156235c5ff0c2a40406d3c211895da41177a03 /includes/SpecialPopularpages.php
parentd052c2c95d346baa97a57af975d67be92f33f45c (diff)
downloadmediawikicore-ac549401d4ddaf655ec47cd1e66092fdc83ab30b.tar.gz
mediawikicore-ac549401d4ddaf655ec47cd1e66092fdc83ab30b.zip
* Support for table name prefixes throughout the code. No support yet for converting static SQL, which also means no installation. But it has been tested by creating the tables in the ordinary way and then renaming them
* DB_WRITE now called DB_MASTER, DB_READ now called DB_SLAVE * Converted to use SQL wrapper functions instead of direct SQL in various places * Experimental method for preserving the chronological order of events when slave servers are used. Untested. * Fixes to the new post-parse existence test feature * Some.. other stuff
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4318
Diffstat (limited to 'includes/SpecialPopularpages.php')
-rw-r--r--includes/SpecialPopularpages.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/SpecialPopularpages.php b/includes/SpecialPopularpages.php
index e69743314cb3..23ad5709fb60 100644
--- a/includes/SpecialPopularpages.php
+++ b/includes/SpecialPopularpages.php
@@ -14,12 +14,15 @@ class PopularPagesPage extends QueryPage {
}
function getSQL() {
+ $dbr =& wfGetDB( DB_SLAVE );
+ $cur = $dbr->tableName( 'cur' );
+
return
"SELECT 'Popularpages' as type,
cur_namespace as namespace,
cur_title as title,
cur_counter as value
- FROM cur
+ FROM $cur
WHERE cur_namespace=0 AND cur_is_redirect=0";
}