equal
deleted
inserted
replaced
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 } |