Revert r73879 for now, not ready yet.
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 28 Sep 2010 15:58:53 +0000 (15:58 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 28 Sep 2010 15:58:53 +0000 (15:58 +0000)
includes/OutputPage.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index 2c9e064..a32b04e 100644 (file)
@@ -1992,10 +1992,10 @@ class OutputPage {
                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' ) );
                        }
index a843341..7effc7d 100644 (file)
@@ -1002,8 +1002,8 @@ Data here will not presently be refreshed.',
 '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.',
index 0147d6b..f9e2195 100644 (file)
@@ -369,8 +369,8 @@ $wgMessageStructure = array(
                'perfcachedts',
                'querypage-no-updates',
                'wrong_wfQuery_params',
-               'viewsourcetitle',
-               'viewsourceheader',
+               'viewsource',
+               'viewsourcefor',
                'actionthrottled',
                'actionthrottledtext',
                'protectedpagetext',