Index: trunk/phase3/includes/specials/SpecialRecentchangeslinked.php |
— | — | @@ -163,13 +163,15 @@ |
164 | 164 | return $extraOpts; |
165 | 165 | } |
166 | 166 | |
167 | | - function setTopText( &$out, $opts ) { |
168 | | - global $wgOut, $wgUser; |
| 167 | + function setTopText( OutputPage $out, FormOptions $opts ) { |
| 168 | + global $wgUser; |
169 | 169 | $skin = $wgUser->getSkin(); |
170 | | - $wgOut->setSubtitle( wfMsg( 'recentchangeslinked-backlink', $skin->link( $this->mTargetTitle, $this->mTargetTitle->getPrefixedText(), array(), array( 'redirect' => 'no' ) ) ) ); |
| 170 | + if( isset( $this->mTargetTitle ) && is_object( $this->mTargetTitle ) ) |
| 171 | + $out->setSubtitle( wfMsg( 'recentchangeslinked-backlink', $skin->link( $this->mTargetTitle, |
| 172 | + $this->mTargetTitle->getPrefixedText(), array(), array( 'redirect' => 'no' ) ) ) ); |
171 | 173 | } |
172 | 174 | |
173 | | - function setBottomText( &$out, $opts ){ |
| 175 | + function setBottomText( OutputPage $out, FormOptions $opts ){ |
174 | 176 | if( isset( $this->mTargetTitle ) && is_object( $this->mTargetTitle ) ){ |
175 | 177 | global $wgUser; |
176 | 178 | $out->setFeedAppendQuery( "target=" . urlencode( $this->mTargetTitle->getPrefixedDBkey() ) ); |
Index: trunk/phase3/includes/specials/SpecialRecentchanges.php |
— | — | @@ -464,7 +464,7 @@ |
465 | 465 | * @param $out OutputPage |
466 | 466 | * @param $opts FormOptions |
467 | 467 | */ |
468 | | - function setTopText( &$out, $opts ){ |
| 468 | + function setTopText( OutputPage $out, FormOptions $opts ){ |
469 | 469 | $out->addWikiText( wfMsgForContentNoTrans( 'recentchangestext' ) ); |
470 | 470 | } |
471 | 471 | |
— | — | @@ -475,7 +475,7 @@ |
476 | 476 | * @param $out OutputPage |
477 | 477 | * @param $opts FormOptions |
478 | 478 | */ |
479 | | - function setBottomText( &$out, $opts ){} |
| 479 | + function setBottomText( OutputPage $out, FormOptions $opts ){} |
480 | 480 | |
481 | 481 | /** |
482 | 482 | * Creates the choose namespace selection |