Ejemplo n.º 1
0
 protected function showTextbox1($customAttribs = null, $textoverride = null)
 {
     if (!empty($this->mSpecialPage)) {
         if ($this->mSpecialPage->showOwnTextbox()) {
             return true;
         }
     }
     // MW core says: In an edit conflict bypass the overrideable content form method
     // and fallback to the raw wpTextbox1
     // Wikia: in visual mode we want to show HTML (BugId:5428)
     if ($this->isConflict) {
         $textoverride = $this->getContent();
         // parse it for visual editor (if needed) - BugId:7956
         if ($this->app->wg->Request->wasPosted()) {
             if ($this->app->wg->Request->getVal('RTEMode') == 'wysiwyg') {
                 $textoverride = RTE::WikitextToHtml($textoverride);
             }
         }
     }
     parent::showTextbox1($customAttribs, $textoverride);
 }