$tpl->set( 'isarticle', $out->isArticle() );
$tpl->setRef( "thispage", $this->thispage );
-
+ $subpagestr = $this->subPageSubtitle();
+ $tpl->set(
+ 'subtitle', !empty($subpagestr)?
+ '<span class="subpages">'.$subpagestr.'</span>'.$out->getSubtitle():
+ $out->getSubtitle()
+ );
$undelete = $this->getUndeleteLink();
$tpl->set(
"undelete", !empty($undelete)?
if ( $nt ) {
$language_urls[] = array(
'href' => $nt->getFullURL(),
- 'text' => $wgContLang->getLanguageName( $nt->getInterwiki() ) != '' ?
- $wgContLang->getLanguageName( $nt->getInterwiki()) : $l,
+ 'text' => ($wgContLang->getLanguageName( $nt->getInterwiki()) != ''?$wgContLang->getLanguageName( $nt->getInterwiki()) : $l),
'class' => $class
);
}
$content_actions = $this->buildContentActionUrls();
$tpl->setRef('content_actions', $content_actions);
- $subpagestr = $this->subPageSubtitle();
- $tpl->set(
- 'subtitle', !empty($subpagestr) ?
- '<span class="subpages">'.$subpagestr.'</span>'.$out->getSubtitle() : $out->getSubtitle()
- );
-
// XXX: attach this from javascript, same with section editing
if($this->iseditable && $wgUser->getOption("editondblclick") )
{
wfProfileIn( __METHOD__ );
global $wgUser, $wgRequest;
- $action = $wgRequest->getText( 'action', 'view' );
+ $action = $wgRequest->getText( 'action' );
$section = $wgRequest->getText( 'section' );
$content_actions = array();
'href' => $this->mTitle->getLocalUrl( 'action=edit§ion=new' )
);
}
- # Give notice if this page is locked for others
- if( ($action == 'view' || $action == 'purge') && $this->mTitle->isProtected( 'edit' ) ) {
- $wgOut->appendSubtitle( "<span class='plainlinks'>" .
- wfMsgExt('protected-sub-allowed',array('parse'),$this->mTitle->getFullUrl('action=protect')) .
- "</span>"
- );
- }
} elseif ( $this->mTitle->exists() || $this->mTitle->isAlwaysKnown() ) {
$content_actions['viewsource'] = array(
'class' => ($action == 'edit') ? 'selected' : false,
'text' => wfMsg('viewsource'),
'href' => $this->mTitle->getLocalUrl( $this->editUrlOptions() )
);
- # Give notice if this page is locked
- if( ($action == 'view' || $action == 'purge') && $this->mTitle->isProtected( 'edit' ) ) {
- $wgOut->appendSubtitle( "<span class='plainlinks'>" .
- wfMsgExt('protected-sub-disallowed',array('parseinline'),$this->mTitle->getFullUrl('action=protect')) .
- "</span>"
- );
- }
}
wfProfileOut( __METHOD__."-edit" );
You can narrow down the view by selecting a log type, the user name (case-sensitive), or the affected page (also case-sensitive).',
'logempty' => 'No matching items in log.',
'log-title-wildcard' => 'Search titles starting with this text',
+'logshowhide-patrol' => '$1 patrol log',
# Special:AllPages
'allpages' => 'All pages',
'markedaspatrollederror-noautopatrol' => 'You are not allowed to mark your own changes as patrolled.',
# Patrol log
-'patrol-log-page' => 'Patrol log',
-'patrol-log-header' => 'This is a log of patrolled revisions.',
-'patrol-log-line' => 'marked $1 of $2 patrolled $3',
-'patrol-log-auto' => '(automatic)',
-'patrol-log-diff' => 'r$1', # only translate this message to other languages if you have to change it
-'logshowhide-patrol' => '$1 patrol log',
+'patrol-log-page' => 'Patrol log',
+'patrol-log-header' => 'This is a log of patrolled revisions.',
+'patrol-log-line' => 'marked $1 of $2 patrolled $3',
+'patrol-log-auto' => '(automatic)',
+'patrol-log-diff' => 'r$1', # only translate this message to other languages if you have to change it
# Image deletion
'deletedrevision' => 'Deleted old revision $1',