dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make ORDER BY a true options array, per bug 9609.
[lhc/web/wiklou.git]
/
includes
/
SpecialWhatlinkshere.php
diff --git
a/includes/SpecialWhatlinkshere.php
b/includes/SpecialWhatlinkshere.php
index
6fdeaa0
..
45ebc50
100644
(file)
--- a/
includes/SpecialWhatlinkshere.php
+++ b/
includes/SpecialWhatlinkshere.php
@@
-70,6
+70,7
@@
class WhatLinksHerePage {
global $wgOut;
$fname = 'WhatLinksHerePage::showIndirectLinks';
$dbr = wfGetDB( DB_READ );
global $wgOut;
$fname = 'WhatLinksHerePage::showIndirectLinks';
$dbr = wfGetDB( DB_READ );
+ $options = array();
$ns = $this->request->getIntOrNull( 'namespace' );
if ( isset( $ns ) ) {
$ns = $this->request->getIntOrNull( 'namespace' );
if ( isset( $ns ) ) {
@@
-99,10
+100,10
@@
class WhatLinksHerePage {
if ( $from ) {
$offsetCond = "page_id >= $from";
if ( $from ) {
$offsetCond = "page_id >= $from";
- $options
= array( 'ORDER BY page_id' )
;
+ $options
['ORDER BY'] = 'page_id'
;
} else {
$offsetCond = false;
} 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;
}
// Read an extra row as an at-end check
$queryLimit = $limit + 1;