includes/render.php
changeset 1066 bead71f28f63
parent 1054 e6b14d33ac55
child 1073 b19a9bcb6a45
equal deleted inserted replaced
1065:18d013f98fd0 1066:bead71f28f63
   203       eval($cmd);
   203       eval($cmd);
   204     }
   204     }
   205     
   205     
   206     // Strip out embedded PHP
   206     // Strip out embedded PHP
   207     self::php_strip($text, $php_stripped);
   207     self::php_strip($text, $php_stripped);
       
   208     
       
   209     // Convert newlines for the parser
       
   210     $text = str_replace("\r\n", "\n", $text);
   208     
   211     
   209     // Perform render through the engine
   212     // Perform render through the engine
   210     $carpenter = new Carpenter();
   213     $carpenter = new Carpenter();
   211     $carpenter->flags = $flags;
   214     $carpenter->flags = $flags;
   212     $carpenter->hook(array(__CLASS__, 'hook_pre'), PO_AFTER, 'lang');
   215     $carpenter->hook(array(__CLASS__, 'hook_pre'), PO_AFTER, 'lang');