Ejemplo n.º 1
0
 /**
  * Perform wikitext parsing to HTML
  */
 public static function wiki2html()
 {
     wfProfileIn(__METHOD__);
     global $wgRequest;
     $wikitext = $wgRequest->getVal('wikitext', '');
     RTE::log(__METHOD__, $wikitext);
     $ret = array('html' => RTE::WikitextToHtml($wikitext), 'instanceId' => RTE::getInstanceId());
     if (RTE::edgeCasesFound()) {
         $ret = array('edgecase' => array('type' => RTE::getEdgeCaseType(), 'info' => array('title' => wfMsg('rte-edgecase-info-title'), 'content' => wfMsg('rte-edgecase-info'))));
     }
     wfProfileOut(__METHOD__);
     return $ret;
 }