private $mContextTitle = null;
/** @var string */
- protected $action = 'submit';
+ public $action = 'submit';
/** @var bool */
public $isConflict = false;
public $isJsSubpage = false;
/** @var bool */
- protected $isWrongCaseCssJsPage = false;
+ public $isWrongCaseCssJsPage = false;
/** @var bool New page or new section */
- protected $isNew = false;
+ public $isNew = false;
/** @var bool */
- protected $deletedSinceEdit;
+ public $deletedSinceEdit;
/** @var string */
public $formtype;
public $firsttime;
/** @var bool|stdClass */
- protected $lastDelete;
+ public $lastDelete;
/** @var bool */
- protected $mTokenOk = false;
+ public $mTokenOk = false;
/** @var bool */
- protected $mTokenOkExceptSuffix = false;
+ public $mTokenOkExceptSuffix = false;
/** @var bool */
- protected $mTriedSave = false;
+ public $mTriedSave = false;
/** @var bool */
- protected $incompleteForm = false;
+ public $incompleteForm = false;
/** @var bool */
- protected $tooBig = false;
+ public $tooBig = false;
/** @var bool */
- protected $kblength = false;
+ public $kblength = false;
/** @var bool */
- protected $missingComment = false;
+ public $missingComment = false;
/** @var bool */
- protected $missingSummary = false;
+ public $missingSummary = false;
/** @var bool */
- protected $allowBlankSummary = false;
+ public $allowBlankSummary = false;
/** @var bool */
protected $blankArticle = false;
protected $allowBlankArticle = false;
/** @var string */
- protected $autoSumm = '';
+ public $autoSumm = '';
/** @var string */
public $hookError = '';
/** @var ParserOutput */
- protected $mParserOutput;
+ public $mParserOutput;
/** @var bool Has a summary been preset using GET parameter &summary= ? */
- protected $hasPresetSummary = false;
+ public $hasPresetSummary = false;
/** @var bool */
- protected $mBaseRevision = false;
+ public $mBaseRevision = false;
/** @var bool */
public $mShowSummaryField = true;
public $preview = false;
/** @var bool */
- protected $diff = false;
+ public $diff = false;
/** @var bool */
public $minoredit = false;
/** @var bool */
- protected $watchthis = false;
+ public $watchthis = false;
/** @var bool */
- protected $recreate = false;
+ public $recreate = false;
/** @var string */
public $textbox1 = '';
public $summary = '';
/** @var bool */
- protected $nosummary = false;
+ public $nosummary = false;
/** @var string */
public $edittime = '';
public $sectiontitle = '';
/** @var string */
- protected $starttime = '';
+ public $starttime = '';
/** @var int */
public $oldid = 0;
/** @var string */
- protected $editintro = '';
+ public $editintro = '';
/** @var null */
public $scrolltop = null;
$wgOut->addHTML( $this->editFormTextBeforeContent );
- if ( $this->contentModel === CONTENT_MODEL_WIKITEXT &&
- $showToolbar && $wgUser->getOption( 'showtoolbar' ) )
- {
+ if ( !$this->isCssJsSubpage && $showToolbar && $wgUser->getOption( 'showtoolbar' ) ) {
$wgOut->addHTML( EditPage::getEditToolbar() );
}
);
} elseif ( $wgUser->isAnon() ) {
if ( $this->formtype != 'preview' ) {
- $wgOut->wrapWikiMsg( "<div id=\"mw-anon-edit-warning\">\n$1</div>", 'anoneditwarning' );
+ $wgOut->wrapWikiMsg(
+ "<div id='mw-anon-edit-warning'>\n$1\n</div>",
+ array( 'anoneditwarning',
+ // Log-in link
+ '{{fullurl:Special:UserLogin|returnto={{FULLPAGENAMEE}}}}',
+ // Sign-up link
+ '{{fullurl:Special:UserLogin/signup|returnto={{FULLPAGENAMEE}}}}' )
+ );
} else {
- $wgOut->wrapWikiMsg( "<div id=\"mw-anon-preview-warning\">\n$1</div>", 'anonpreviewwarning' );
+ $wgOut->wrapWikiMsg( "<div id=\"mw-anon-preview-warning\">\n$1</div>",
+ 'anonpreviewwarning'
+ );
}
} else {
if ( $this->isCssJsSubpage ) {
* up top, or false if this is the comment summary
* down below the textarea
* @param string $summary The text of the summary to display
- * @return string
*/
protected function showSummaryInput( $isSubjectPreview, $summary = "" ) {
global $wgOut, $wgContLang;
* Get the copyright warning
*
* Renamed to getCopyrightWarning(), old name kept around for backwards compatibility
+ * @return string
*/
protected function getCopywarn() {
return self::getCopyrightWarning( $this->mTitle );
* inserted between the two when no selection is highlighted
* and. The tip text is shown when the user moves the mouse
* over the button.
- *
- * Also here: accesskeys (key), which are not used yet until
- * someone can figure out a way to make them work in
- * IE. However, we should make sure these keys are not defined
- * on the edit page.
*/
$toolarray = array(
array(
'close' => '\'\'\'',
'sample' => wfMessage( 'bold_sample' )->text(),
'tip' => wfMessage( 'bold_tip' )->text(),
- 'key' => 'B'
),
array(
'image' => $wgLang->getImageFile( 'button-italic' ),
'close' => '\'\'',
'sample' => wfMessage( 'italic_sample' )->text(),
'tip' => wfMessage( 'italic_tip' )->text(),
- 'key' => 'I'
),
array(
'image' => $wgLang->getImageFile( 'button-link' ),
'close' => ']]',
'sample' => wfMessage( 'link_sample' )->text(),
'tip' => wfMessage( 'link_tip' )->text(),
- 'key' => 'L'
),
array(
'image' => $wgLang->getImageFile( 'button-extlink' ),
'close' => ']',
'sample' => wfMessage( 'extlink_sample' )->text(),
'tip' => wfMessage( 'extlink_tip' )->text(),
- 'key' => 'X'
),
array(
'image' => $wgLang->getImageFile( 'button-headline' ),
'close' => " ==\n",
'sample' => wfMessage( 'headline_sample' )->text(),
'tip' => wfMessage( 'headline_tip' )->text(),
- 'key' => 'H'
),
$imagesAvailable ? array(
'image' => $wgLang->getImageFile( 'button-image' ),
'close' => ']]',
'sample' => wfMessage( 'image_sample' )->text(),
'tip' => wfMessage( 'image_tip' )->text(),
- 'key' => 'D',
) : false,
$imagesAvailable ? array(
'image' => $wgLang->getImageFile( 'button-media' ),
'close' => ']]',
'sample' => wfMessage( 'media_sample' )->text(),
'tip' => wfMessage( 'media_tip' )->text(),
- 'key' => 'M'
) : false,
array(
'image' => $wgLang->getImageFile( 'button-nowiki' ),
'close' => "</nowiki>",
'sample' => wfMessage( 'nowiki_sample' )->text(),
'tip' => wfMessage( 'nowiki_tip' )->text(),
- 'key' => 'N'
),
array(
'image' => $wgLang->getImageFile( 'button-sig' ),
'close' => '',
'sample' => '',
'tip' => wfMessage( 'sig_tip' )->text(),
- 'key' => 'Y'
),
array(
'image' => $wgLang->getImageFile( 'button-hr' ),
'close' => '',
'sample' => '',
'tip' => wfMessage( 'hr_tip' )->text(),
- 'key' => 'R'
)
);