Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php |
— | — | @@ -419,7 +419,7 @@ |
420 | 420 | $htmlOut .= Xml::openElement( 'form', |
421 | 421 | array( |
422 | 422 | 'method' => 'post', |
423 | | - 'action' => SpecialPage::getTitleFor( 'CentralNotice' )->getFullUrl() |
| 423 | + 'action' => $this->getTitle()->getFullUrl() |
424 | 424 | ) |
425 | 425 | ); |
426 | 426 | } |
— | — | @@ -548,7 +548,7 @@ |
549 | 549 | $htmlOut .= Xml::openElement( 'form', |
550 | 550 | array( |
551 | 551 | 'method' => 'post', |
552 | | - 'action' => SpecialPage::getTitleFor( 'CentralNotice' )->getLocalUrl() |
| 552 | + 'action' => $this->getTitle()->getLocalUrl() |
553 | 553 | ) |
554 | 554 | ); |
555 | 555 | $htmlOut .= Xml::element( 'h2', null, wfMsg( 'centralnotice-add-notice' ) ); |
— | — | @@ -634,7 +634,7 @@ |
635 | 635 | $this->addTemplateTo( $notice, $template, $weight[$template] ); |
636 | 636 | } |
637 | 637 | } |
638 | | - $wgOut->redirect( SpecialPage::getTitleFor( 'CentralNotice' )->getLocalUrl( "method=listNoticeDetail¬ice=$notice" ) ); |
| 638 | + $wgOut->redirect( $this->getTitle()->getLocalUrl( "method=listNoticeDetail¬ice=$notice" ) ); |
639 | 639 | return; |
640 | 640 | } |
641 | 641 | |
— | — | @@ -647,7 +647,7 @@ |
648 | 648 | $htmlOut .= Xml::openElement( 'form', |
649 | 649 | array( |
650 | 650 | 'method' => 'post', |
651 | | - 'action' => SpecialPage::getTitleFor( 'CentralNotice' )->getLocalUrl( "method=listNoticeDetail¬ice=$notice" ) |
| 651 | + 'action' => $this->getTitle()->getLocalUrl( "method=listNoticeDetail¬ice=$notice" ) |
652 | 652 | ) |
653 | 653 | ); |
654 | 654 | } |
— | — | @@ -671,7 +671,7 @@ |
672 | 672 | if ( $output_assigned == '' && $output_templates == '' ) { |
673 | 673 | $htmlOut .= wfMsg( 'centralnotice-no-templates' ); |
674 | 674 | $htmlOut .= Xml::element( 'p' ); |
675 | | - $newPage = SpecialPage::getTitleFor( 'NoticeTemplate', 'add' ); |
| 675 | + $newPage = $this->getTitleFor( 'NoticeTemplate', 'add' ); |
676 | 676 | $sk = $wgUser->getSkin(); |
677 | 677 | $htmlOut .= $sk->makeLinkObj( $newPage, wfMsgHtml( 'centralnotice-add-template' ) ); |
678 | 678 | $htmlOut .= Xml::element( 'p' ); |
— | — | @@ -863,7 +863,7 @@ |
864 | 864 | $this->weightDropDown( "weight[$row->tmp_name]", $row->tmp_weight ) |
865 | 865 | ); |
866 | 866 | |
867 | | - $viewPage = SpecialPage::getTitleFor( 'NoticeTemplate/view' ); |
| 867 | + $viewPage = $this->getTitleFor( 'NoticeTemplate', 'view' ); |
868 | 868 | $render = new SpecialNoticeText(); |
869 | 869 | $render->project = 'wikipedia'; |
870 | 870 | global $wgRequest; |
— | — | @@ -961,7 +961,7 @@ |
962 | 962 | ); |
963 | 963 | |
964 | 964 | // Render preview |
965 | | - $viewPage = SpecialPage::getTitleFor( 'NoticeTemplate/view' ); |
| 965 | + $viewPage = $this->getTitleFor( 'NoticeTemplate', 'view' ); |
966 | 966 | $render = new SpecialNoticeText(); |
967 | 967 | $render->project = 'wikipedia'; |
968 | 968 | global $wgRequest; |
Index: trunk/extensions/CentralNotice/SpecialNoticeTemplate.php |
— | — | @@ -113,7 +113,7 @@ |
114 | 114 | $newTemplate = $wgRequest->getVal( 'newTemplate' ); |
115 | 115 | // We use the returned name in case any special characters had to be removed |
116 | 116 | $template = $this->cloneTemplate( $oldTemplate, $newTemplate ); |
117 | | - $wgOut->redirect( SpecialPage::getTitleFor( 'NoticeTemplate', 'view' )->getLocalUrl( "template=$template" ) ); |
| 117 | + $wgOut->redirect( $this->getTitle( 'view' )->getLocalUrl( "template=$template" ) ); |
118 | 118 | return; |
119 | 119 | } |
120 | 120 | } |
— | — | @@ -163,7 +163,7 @@ |
164 | 164 | |
165 | 165 | if ( $this->editable ) { |
166 | 166 | $htmlOut .= Xml::element( 'p' ); |
167 | | - $newPage = SpecialPage::getTitleFor( 'NoticeTemplate', 'add' ); |
| 167 | + $newPage = $this->getTitle( 'add' ); |
168 | 168 | $htmlOut .= $sk->makeLinkObj( $newPage, wfMsgHtml( 'centralnotice-add-template' ) ); |
169 | 169 | } |
170 | 170 | |
— | — | @@ -358,7 +358,7 @@ |
359 | 359 | $htmlOut .= Xml::openElement( 'table', array ( 'cellpadding' => 9 ) ); |
360 | 360 | list( $lsLabel, $lsSelect ) = Xml::languageSelector( $wpUserLang ); |
361 | 361 | |
362 | | - $newPage = SpecialPage::getTitleFor( 'NoticeTemplate', 'view' ); |
| 362 | + $newPage = $this->getTitle( 'view' ); |
363 | 363 | |
364 | 364 | $htmlOut .= Xml::tags( 'tr', null, |
365 | 365 | Xml::tags( 'td', null, $lsLabel ) . |
— | — | @@ -414,7 +414,7 @@ |
415 | 415 | $htmlOut .= Xml::openElement ( 'form', |
416 | 416 | array( |
417 | 417 | 'method' => 'post', |
418 | | - 'action' => SpecialPage::getTitleFor( 'NoticeTemplate', 'clone' )->getLocalUrl() |
| 418 | + 'action' => $this->getTitle( 'clone' )->getLocalUrl() |
419 | 419 | ) |
420 | 420 | ); |
421 | 421 | |
— | — | @@ -458,7 +458,7 @@ |
459 | 459 | |
460 | 460 | foreach ( $langs as $lang ) { |
461 | 461 | // Link and Preview all available translations |
462 | | - $viewPage = SpecialPage::getTitleFor( 'NoticeTemplate', 'view' ); |
| 462 | + $viewPage = $this->getTitle( 'view' ); |
463 | 463 | $render = new SpecialNoticeText(); |
464 | 464 | $render->project = 'wikipedia'; |
465 | 465 | $render->language = $lang; |