summaryrefslogtreecommitdiff
path: root/maintenance/dumpLinks.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/dumpLinks.php')
-rw-r--r--maintenance/dumpLinks.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/maintenance/dumpLinks.php b/maintenance/dumpLinks.php
index f040f390..2caa873c 100644
--- a/maintenance/dumpLinks.php
+++ b/maintenance/dumpLinks.php
@@ -26,13 +26,12 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
- * @package MediaWiki
- * @subpackage SpecialPage
+ * @addtogroup SpecialPage
*/
require_once 'commandLine.inc';
-$dbr =& wfGetDB( DB_SLAVE );
+$dbr = wfGetDB( DB_SLAVE );
$result = $dbr->select( array( 'pagelinks', 'page' ),
array(
'page_id',
@@ -42,7 +41,7 @@ $result = $dbr->select( array( 'pagelinks', 'page' ),
'pl_title' ),
array( 'page_id=pl_from' ),
'dumpLinks',
- array( 'ORDER BY page_id' ) );
+ array( 'ORDER BY' => 'page_id' ) );
$lastPage = null;
while( $row = $dbr->fetchObject( $result ) ) {