svn: /web/doc-editor/trunk/php/ ToolsError.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Fri, 16 Apr 2010 22:57:27 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=298103

Log:
Add parameter as information when we found a missing initializer tag

Changed paths:
    U   web/doc-editor/trunk/php/ToolsError.php

Modified: web/doc-editor/trunk/php/ToolsError.php
===================================================================
--- web/doc-editor/trunk/php/ToolsError.php	2010-04-16 22:54:36 UTC (rev 298102)
+++ web/doc-editor/trunk/php/ToolsError.php	2010-04-16 22:57:27 UTC (rev 298103)
@@ -1145,14 +1145,16 @@

 	if ( !empty($matches))
 	{
+            $i=0;
 	    foreach ($matches[3] as $match) {
 		if (empty($match) || (false === strpos($match, '<initializer>'))) {
 		    $this->addError(array(
-			'value_en'   => 'N/A',
+			'value_en'   => $matches[2][$i],
 			'value_lang' => 'N/A',
 			'type'       => 'missingInitializer'
 		    ));
 		}
+                $i++;
 	    }
 	}
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.