Ejemplo n.º 1
0
    protected function showFormBeforeText()
    {
        global $wgOut;
        $section = htmlspecialchars($this->section);
        $wgOut->addHTML(<<<HTML
<input type='hidden' value="{$section}" name="wpSection" />
<input type='hidden' value="{$this->starttime}" name="wpStarttime" />
<input type='hidden' value="{$this->edittime}" name="wpEdittime" />
<input type='hidden' value="{$this->scrolltop}" name="wpScrolltop" id="wpScrolltop" />

HTML
);
        if (!$this->checkUnicodeCompliantBrowser()) {
            $wgOut->addHTML(Html::hidden('safemode', '1'));
        }
        $isSourceEditor = !(class_exists("RTE") && RTE::isWysiwygModeEnabled()) ? 1 : 0;
        $wgOut->addHTML(Html::hidden('isMediaWikiEditor', $isSourceEditor));
    }