* Set headers, titles and other bits
*/
private function setHeaders() {
- global $wgOut;
+ global $wgOut, $wgUser;
$wgOut->setPageTitle( wfMsg( 'filedelete', $this->title->getText() ) );
$wgOut->setRobotPolicy( 'noindex,nofollow' );
+ $wgOut->setSubtitle( wfMsg( 'filedelete-backlink', $wgUser->getSkin()->makeKnownLinkObj( $this->title ) ) );
}
/**
* Set headers, titles and other bits
*/
private function setHeaders() {
- global $wgOut;
+ global $wgOut, $wgUser;
$wgOut->setPageTitle( wfMsg( 'filerevert', $this->title->getText() ) );
$wgOut->setRobotPolicy( 'noindex,nofollow' );
+ $wgOut->setSubtitle( wfMsg( 'filerevert-backlink', $wgUser->getSkin()->makeKnownLinkObj( $this->title ) ) );
}
/**
# File reversion
'filerevert' => 'Revert $1',
+'filerevert-backlink' => '← $1',
'filerevert-legend' => 'Revert file',
'filerevert-intro' => "<span class=\"plainlinks\">You are reverting '''[[Media:$1|$1]]''' to the [$4 version as of $3, $2].</span>",
'filerevert-comment' => 'Comment:',
# File deletion
'filedelete' => 'Delete $1',
+'filedelete-backlink' => '← $1',
'filedelete-legend' => 'Delete file',
'filedelete-intro' => "You are deleting '''[[Media:$1|$1]]'''.",
'filedelete-intro-old' => "<span class=\"plainlinks\">You are deleting the version of '''[[Media:$1|$1]]''' as of [$4 $3, $2].</span>",
'seconds-abbrev',
'minutes-abbrev',
'hours-abbrev',
+ 'filerevert-backlink',
+ 'filedelete-backlink',
);
/** EXIF messages, which may be set as optional in several checks, but are generally mandatory */
),
'filerevert' => array(
'filerevert',
+ 'filerevert-backlink',
'filerevert-legend',
'filerevert-intro',
'filerevert-comment',
),
'filedelete' => array(
'filedelete',
+ 'filedelete-backlink',
'filedelete-legend',
'filedelete-intro',
'filedelete-intro-old',