Jeremy Newman : get_xml_tags(): change to return assoc array

Jeremy Newman jnewman at winehq.org
Tue Aug 5 11:22:14 CDT 2008


Module: website
Branch: master
Commit: ddf85c1eb9655a12af61ce066dcf00e29f4d5619
URL:    http://source.winehq.org/git/website.git/?a=commit;h=ddf85c1eb9655a12af61ce066dcf00e29f4d5619

Author: Jeremy Newman <jnewman at codeweavers.com>
Date:   Tue Aug  5 11:19:17 2008 -0500

get_xml_tags(): change to return assoc array

---

 include/utils.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/utils.php b/include/utils.php
index 20ca58a..2f59e90 100644
--- a/include/utils.php
+++ b/include/utils.php
@@ -46,7 +46,7 @@ function get_xml_tags ($file, $tags = null)
         {
             if (eregi("<" . $tag . ">(.*)</" . $tag . ">", $data, $out))
             {
-                array_push($content, $out[1]);
+                $content[$tag] = $out[1];
             }
         }
         return $content;




More information about the wine-cvs mailing list