includes/wikiengine/parse_mediawiki.php
changeset 1054 e6b14d33ac55
parent 1044 ad6a22377507
child 1073 b19a9bcb6a45
--- a/includes/wikiengine/parse_mediawiki.php	Sat Jul 11 20:25:50 2009 -0400
+++ b/includes/wikiengine/parse_mediawiki.php	Sat Jul 11 20:28:03 2009 -0400
@@ -46,7 +46,7 @@
   {
     $template_regex = "/\{\{(.+)((\n|\|[ ]*([A-z0-9]+)[ ]*=[ ]*(.+))*)\}\}/isU";
     $i = 0;
-    while ( preg_match($template_regex, $text) )
+    while ( preg_match($template_regex, $text, $match) )
     {
       $i++;
       if ( $i == 5 )