includes/wikiformat.php
changeset 1093 be48c0a49c7d
parent 1081 745200a9cc2a
child 1106 01315acbc22b
equal deleted inserted replaced
1092:3b97242ada21 1093:be48c0a49c7d
    97   public function render($text)
    97   public function render($text)
    98   {
    98   {
    99     $parser_class = "Carpenter_Parse_" . ucwords($this->parser);
    99     $parser_class = "Carpenter_Parse_" . ucwords($this->parser);
   100     $renderer_class = "Carpenter_Render_" . ucwords($this->renderer);
   100     $renderer_class = "Carpenter_Render_" . ucwords($this->renderer);
   101     
   101     
       
   102     // empty?
       
   103     if ( trim($text) === '' )
       
   104       return $text;
       
   105     
   102     // include files, if we haven't already
   106     // include files, if we haven't already
   103     if ( !class_exists($parser_class) )
   107     if ( !class_exists($parser_class) )
   104     {
   108     {
   105       require_once( ENANO_ROOT . "/includes/wikiengine/parse_{$this->parser}.php");
   109       require_once( ENANO_ROOT . "/includes/wikiengine/parse_{$this->parser}.php");
   106     }
   110     }