From a8b0d83c6b2635784d98d2814782590472359ec3 Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 28 Nov 2006 23:34:13 +0000 Subject: fixed #463 --- framework/I18N/core/MessageSource_XLIFF.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/I18N/core/MessageSource_XLIFF.php') diff --git a/framework/I18N/core/MessageSource_XLIFF.php b/framework/I18N/core/MessageSource_XLIFF.php index 7f2f27c5..79d4f38c 100644 --- a/framework/I18N/core/MessageSource_XLIFF.php +++ b/framework/I18N/core/MessageSource_XLIFF.php @@ -280,7 +280,8 @@ class MessageSource_XLIFF extends MessageSource throw new TIOException("Unable to save to file {$filename}, file must be writable."); //create a new dom, import the existing xml - $dom = DOMDocument::load($filename); + $dom = new DOMDocument(); + $dom->load($filename); //find the body element $xpath = new DomXPath($dom); -- cgit v1.2.3