includes/wikiengine/parse_mediawiki.php
changeset 1054 e6b14d33ac55
parent 1044 ad6a22377507
child 1073 b19a9bcb6a45
equal deleted inserted replaced
1053:bdbb49cf6f1b 1054:e6b14d33ac55
    44   
    44   
    45   public function templates(&$text)
    45   public function templates(&$text)
    46   {
    46   {
    47     $template_regex = "/\{\{(.+)((\n|\|[ ]*([A-z0-9]+)[ ]*=[ ]*(.+))*)\}\}/isU";
    47     $template_regex = "/\{\{(.+)((\n|\|[ ]*([A-z0-9]+)[ ]*=[ ]*(.+))*)\}\}/isU";
    48     $i = 0;
    48     $i = 0;
    49     while ( preg_match($template_regex, $text) )
    49     while ( preg_match($template_regex, $text, $match) )
    50     {
    50     {
    51       $i++;
    51       $i++;
    52       if ( $i == 5 )
    52       if ( $i == 5 )
    53         break;
    53         break;
    54       $text = RenderMan::include_templates($text);
    54       $text = RenderMan::include_templates($text);