http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88858
Revision: 88858
Author: reedy
Date: 2011-05-25 22:53:01 +0000 (Wed, 25 May 2011)
Log Message:
-----------
Fix variable usage, followup r88849
Modified Paths:
--------------
trunk/extensions/ShortUrl/populateShortUrlTable.php
Modified: trunk/extensions/ShortUrl/populateShortUrlTable.php
===================================================================
--- trunk/extensions/ShortUrl/populateShortUrlTable.php 2011-05-25 22:50:14 UTC
(rev 88857)
+++ trunk/extensions/ShortUrl/populateShortUrlTable.php 2011-05-25 22:53:01 UTC
(rev 88858)
@@ -12,7 +12,7 @@
$this->mDescription = "Populates ShortUrls Table with all
existing articles";
}
- private function insertRows($a) {
+ private function insertRows( $a ) {
$dbw = wfGetDB( DB_MASTER );
$dbw->insert(
'shorturls',
@@ -20,14 +20,13 @@
__METHOD__,
array( 'IGNORE' )
);
-
}
//FIXME: Refactor out code in ShortUrl.functions.php so it can be used
here
public function execute() {
$rowCount = 0;
$dbr = wfGetDB( DB_SLAVE );
- $all_titles = $dbr->select(
+ $res = $dbr->select(
"page",
array( "page_namespace", "page_title" ),
array(),
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs