From 6c02912c69ac0d17329baae092377a171bc11e5e Mon Sep 17 00:00:00 2001 From: maroy Date: Tue, 11 Jan 2005 13:16:21 +0000 Subject: [PATCH] Probably solved problem with dom_xml read IO error. --- livesupport/modules/storageServer/var/MetaData.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/livesupport/modules/storageServer/var/MetaData.php b/livesupport/modules/storageServer/var/MetaData.php index 7c3de0e26..89d7040a5 100644 --- a/livesupport/modules/storageServer/var/MetaData.php +++ b/livesupport/modules/storageServer/var/MetaData.php @@ -22,8 +22,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Author : $Author: tomas $ - Version : $Revision: 1.10 $ + Author : $Author: maroy $ + Version : $Revision: 1.11 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/MetaData.php,v $ ------------------------------------------------------------------------------*/ @@ -228,7 +228,8 @@ class MetaData{ "MetaData::storeXMLDoc: can't read metadata file ($mdata)" ); } - $xml = domxml_open_file($mdata); + $mdstr = file_get_contents($mdata); + $xml = domxml_open_mem($mdstr); break; case"string": $xml = domxml_open_mem($mdata); @@ -554,4 +555,4 @@ class MetaData{ return TRUE; } } -?> \ No newline at end of file +?>