if ( !empty( $reasons ) ) {
// Permissions error
if( $source ) {
- $title = $this->getTitle();
- $link = $skin->linkKnown( $title );
- $this->mPagetitle = wfMessage( 'viewsourceheader' )->rawParams( $link )->escaped();
- $this->mHTMLtitle = wfMessage( 'viewsourcetitle', $title->getPrefixedText() )->escaped();
+ $this->setPageTitle( wfMsg( 'viewsource' ) );
+ $this->setSubtitle(
+ wfMsg( 'viewsourcefor', $skin->linkKnown( $this->getTitle() ) )
+ );
} else {
$this->setPageTitle( wfMsg( 'badaccess' ) );
}
'wrong_wfQuery_params' => 'Incorrect parameters to wfQuery()<br />
Function: $1<br />
Query: $2',
-'viewsourcetitle' => 'Source for page $1',
-'viewsourceheader' => 'Source for page $1',
+'viewsource' => 'View source',
+'viewsourcefor' => 'for $1',
'actionthrottled' => 'Action throttled',
'actionthrottledtext' => 'As an anti-spam measure, you are limited from performing this action too many times in a short space of time, and you have exceeded this limit.
Please try again in a few minutes.',