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