* Removed obsoletes Title::getRelatedCache and Title:touchArray
* (bug 7285) Check MySQL username length during install
* (bug 6910) Correct date/time formats in Vietnamese (vi)
+* (bug 9609) Correctly use ORDER BY in SpecialWhatlinkshere.php
== Maintenance ==
global $wgOut;
$fname = 'WhatLinksHerePage::showIndirectLinks';
$dbr = wfGetDB( DB_READ );
+ $options = array();
$ns = $this->request->getIntOrNull( 'namespace' );
if ( isset( $ns ) ) {
if ( $from ) {
$offsetCond = "page_id >= $from";
- $options = array( 'ORDER BY page_id' );
+ $options['ORDER BY'] = 'page_id';
} else {
$offsetCond = false;
- $options = array( 'ORDER BY page_id,is_template DESC' );
+ $options['ORDER BY'] = 'page_id, is_template DESC';
}
// Read an extra row as an at-end check
$queryLimit = $limit + 1;