Merge "Make SpecialWatchlist extend SpecialRecentChanges (temporarily)"
[lhc/web/wiklou.git] / includes / specials / SpecialWatchlist.php
index 19d2540..a680bac 100644 (file)
@@ -163,7 +163,7 @@ class SpecialWatchlist extends SpecialRecentChanges {
                        && $request->wasPosted()
                ) {
                        $user->clearAllNotifications();
-                       $output->redirect( $this->getTitle()->getFullURL( $nondefaults ) );
+                       $output->redirect( $this->getPageTitle()->getFullURL( $nondefaults ) );
                        return;
                }
 
@@ -240,7 +240,7 @@ class SpecialWatchlist extends SpecialRecentChanges {
 
                if ( $wgShowUpdatedMarker ) {
                        $form .= Xml::openElement( 'form', array( 'method' => 'post',
-                               'action' => $this->getTitle()->getLocalURL(),
+                               'action' => $this->getPageTitle()->getLocalURL(),
                                'id' => 'mw-watchlist-resetbutton' ) ) . "\n" .
                        Xml::submitButton( $this->msg( 'enotif_reset' )->text(), array( 'name' => 'dummy' ) ) . "\n" .
                        Html::hidden( 'reset', 'all' ) . "\n";
@@ -252,7 +252,7 @@ class SpecialWatchlist extends SpecialRecentChanges {
 
                $form .= Xml::openElement( 'form', array(
                        'method' => 'post',
-                       'action' => $this->getTitle()->getLocalURL(),
+                       'action' => $this->getPageTitle()->getLocalURL(),
                        'id' => 'mw-watchlist-form'
                ) );
                $form .= Xml::fieldset(
@@ -441,14 +441,14 @@ class SpecialWatchlist extends SpecialRecentChanges {
                $label = $this->msg( $value ? 'show' : 'hide' )->escaped();
                $options[$name] = 1 - (int)$value;
 
-               return $this->msg( $message )->rawParams( Linker::linkKnown( $this->getTitle(), $label, array(), $options ) )->escaped();
+               return $this->msg( $message )->rawParams( Linker::linkKnown( $this->getPageTitle(), $label, array(), $options ) )->escaped();
        }
 
        protected function hoursLink( $h, $options = array() ) {
                $options['days'] = ( $h / 24.0 );
 
                return Linker::linkKnown(
-                       $this->getTitle(),
+                       $this->getPageTitle(),
                        $this->getLanguage()->formatNum( $h ),
                        array(),
                        $options
@@ -460,7 +460,7 @@ class SpecialWatchlist extends SpecialRecentChanges {
                $message = ( $d ? $this->getLanguage()->formatNum( $d ) : $this->msg( 'watchlistall2' )->escaped() );
 
                return Linker::linkKnown(
-                       $this->getTitle(),
+                       $this->getPageTitle(),
                        $message,
                        array(),
                        $options