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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Sat, 27 Feb 2010 11:09:10 +0000

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

Log:
Find more xmlID into a file

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

Modified: web/doc-editor/trunk/php/File.php
===================================================================
--- web/doc-editor/trunk/php/File.php	2010-02-27 10:45:47 UTC (rev 295565)
+++ web/doc-editor/trunk/php/File.php	2010-02-27 11:09:10 UTC (rev 295566)
@@ -299,8 +299,8 @@

         // All xmlid
         $match = array();
-        if (preg_match_all('/xml:id="(.*?)"/', $content, $match)) {
-            $info['xmlid'] = implode('|',$match[1]);
+        if (preg_match_all('/xml:id=("|\')(.*?)("|\')/', $content, $match)) {
+            $info['xmlid'] = implode('|',$match[2]);
         }

         return $info;
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.