function edit()
{
- global $wgOut, $wgUser;
+ global $wgOut, $wgUser, $wgWhitelistEdit;
global $wpTextbox1, $wpSummary, $wpSave, $wpPreview;
global $wpMinoredit, $wpEdittime, $wpTextbox2;
$this->blockedIPpage();
return;
}
+ if ( !$wgUser->getID() && $wgWhitelistEdit ) {
+ $this->userNotLoggedInPage();
+ return;
+ }
if ( wfReadOnly() ) {
if( isset( $wpSave ) or isset( $wpPreview ) ) {
$this->editForm( "preview" );
$this->blockedIPpage();
return;
}
+ if ( !$wgUser->getID() && $wgWhitelistEdit ) {
+ $this->userNotLoggedInPage();
+ return;
+ }
if ( wfReadOnly() ) {
$wgOut->readOnlyPage();
return;
}
+
+ function userNotLoggedInPage()
+ {
+ global $wgOut, $wgUser, $wgLang;
+
+ $wgOut->setPageTitle( wfMsg( "whitelistedittitle" ) );
+ $wgOut->setRobotpolicy( "noindex,nofollow" );
+ $wgOut->setArticleFlag( false );
+
+ $wgOut->addWikiText( wfMsg( "whitelistedittext" ) );
+ $wgOut->returnToMain( false );
+ }
+
+
}
?>