$this->mSkin =& $user->getSkin();
wfProfileOut( $fname.'-skin' );
$this->mDateFormat = $user->getOption( 'date' );
- $this->mEditSection = $user->getOption( 'editsection' );
+ $this->mEditSection = true;
$this->mNumberHeadings = $user->getOption( 'numberheadings' );
$this->mAllowSpecialInclusion = $wgAllowSpecialInclusion;
wfProfileOut( $fname );
if( !$wgUser->getOption( 'showtoc' ) ) {
$s .= "#toc { display: none; }\n";
}
+ if( !$wgUser->getOption( 'editsection' ) ) {
+ $s .= ".editsection { display: none; }\n";
+ }
return $s;
}
function doAfterContent() { }
function pageTitleLinks() {
- global $wgOut, $wgTitle, $wgUser, $wgContLang, $wgUseApproval, $wgRequest;
+ global $wgOut, $wgTitle, $wgUser, $wgContLang, $wgRequest;
extract( $wgRequest->getValues( 'oldid', 'diff' ) );
$action = $wgRequest->getText( 'action' );
$s .= " | <a href=\"{$link}\"{$style}>{$name}</a>";
}
}
- # This will show the "Approve" link if $wgUseApproval=true;
- if ( isset ( $wgUseApproval ) && $wgUseApproval )
- {
- $t = $wgTitle->getDBkey();
- $name = 'Approve this article' ;
- $link = "http://test.wikipedia.org/w/magnus/wiki.phtml?title={$t}&action=submit&doit=1" ;
- #htmlspecialchars( wfImageUrl( $name ) );
- $style = $this->getExternalLinkAttributes( $link, $name );
- $s .= " | <a href=\"{$link}\"{$style}>{$name}</a>" ;
- }
}
if ( 'history' == $action || isset( $diff ) || isset( $oldid ) ) {
$s .= ' | ' . $this->makeKnownLinkObj( $wgTitle,
$confstr = $this->getOption( 'math' );
$confstr .= '!' . $this->getOption( 'stubthreshold' );
- $confstr .= '!' . $this->getOption( 'editsection' );
$confstr .= '!' . $this->getOption( 'date' );
$confstr .= '!' . $this->getOption( 'numberheadings' );
$confstr .= '!' . $this->getOption( 'language' );