svn: /web/doc-editor/trunk/php/ File.php
| From: | Yannick Torres | Date: | Sat, 27 Feb 2010 11:09:10 +0000 |
| Subject: | svn: /web/doc-editor/trunk/php/ File.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-1557@lists.php.net to get a copy of this message | ||
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;