Index: trunk/extensions/CategoryMultisort/CategoryMultisort.hooks.php |
— | — | @@ -368,7 +368,7 @@ |
369 | 369 | } |
370 | 370 | } |
371 | 371 | |
372 | | - $wgOut->addHTML( $this->onCategoryPageView_buildSortkeySelectForm( $skn ) ); |
| 372 | + $wgOut->addHTML( $this->onCategoryPageView_buildSortkeySelectForm( $skn, $title ) ); |
373 | 373 | |
374 | 374 | if ( !$skn || !array_key_exists( $skn, $wgCategoryMultisortSortkeySettings ) ) { |
375 | 375 | return true; |
— | — | @@ -386,8 +386,8 @@ |
387 | 387 | } |
388 | 388 | } |
389 | 389 | |
390 | | - function onCategoryPageView_buildSortkeySelectForm( $current = '' ) { |
391 | | - global $wgCategoryMultisortSortkeySettings, $wgArticle, $wgScript, $wgContLang; |
| 390 | + function onCategoryPageView_buildSortkeySelectForm( $current, $title ) { |
| 391 | + global $wgCategoryMultisortSortkeySettings, $wgScript, $wgContLang; |
392 | 392 | |
393 | 393 | $html = ''; |
394 | 394 | |
— | — | @@ -415,7 +415,7 @@ |
416 | 416 | Html::input( '', wfMsgNoTrans( 'categorymultisort-go' ), 'submit' , array( |
417 | 417 | 'id' => 'categorymultisort-select-go', |
418 | 418 | ) ) ); |
419 | | - $html = Html::hidden( 'title', $wgArticle->getTitle()->getPrefixedDBkey() ) . $html; |
| 419 | + $html = Html::hidden( 'title', $title->getPrefixedDBkey() ) . $html; |
420 | 420 | $html = Html::rawElement( 'form', array( |
421 | 421 | 'action' => $wgScript, |
422 | 422 | 'method' => 'get', |