Preserve parameters during navigation on Special:PagesWithProp
There is a namespace filter and two more options on the page. They weren't preserved when the user navigated to another batch of results (e.g., using "50 next"). Change-Id: I702c08957daa204f151db0d85063da9818835866
This commit is contained in:
parent
1f66af055d
commit
dae38d6696
1 changed files with 14 additions and 0 deletions
|
|
@ -155,6 +155,20 @@ class SpecialPagesWithProp extends QueryPage {
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
protected function linkParameters() {
|
||||
$params = [
|
||||
'reverse' => $this->reverse,
|
||||
'sortbyvalue' => $this->sortByValue,
|
||||
];
|
||||
if ( $this->ns !== null ) {
|
||||
$params['namespace'] = $this->ns;
|
||||
}
|
||||
return $params;
|
||||
}
|
||||
|
||||
public function getQueryInfo() {
|
||||
$query = [
|
||||
'tables' => [ 'page_props', 'page' ],
|
||||
|
|
|
|||
Loading…
Reference in a new issue