1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +02:00

Bugfix: Xml feed was failing under some circumstances

This commit is contained in:
CaMer0n
2010-02-07 00:44:08 +00:00
parent 8357a97f04
commit 9af9c97d58

View File

@@ -9,9 +9,9 @@
* Simple XML Parser * Simple XML Parser
* *
* $Source: /cvs_backup/e107_0.8/e107_handlers/xml_class.php,v $ * $Source: /cvs_backup/e107_0.8/e107_handlers/xml_class.php,v $
* $Revision: 1.38 $ * $Revision: 1.39 $
* $Date: 2009-11-26 17:14:06 $ * $Date: 2010-02-07 00:44:08 $
* $Author: secretr $ * $Author: e107coders $
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
@@ -286,6 +286,7 @@ class xmlClass
} }
if ($data) if ($data)
{ {
$this->xmlFileContents = $data;
return $data; return $data;
} }
} }
@@ -613,6 +614,8 @@ class xmlClass
*/ */
function loadXMLfile($fname, $parse = false, $replace_constants = false) function loadXMLfile($fname, $parse = false, $replace_constants = false)
{ {
global $tp;
if (empty($fname)) if (empty($fname))
{ {
return false; return false;
@@ -633,7 +636,7 @@ class xmlClass
{ {
if ($replace_constants == true) if ($replace_constants == true)
{ {
$this->xmlFileContents = e107::getParser()->replaceConstants($this->xmlFileContents, '', true); $this->xmlFileContents = $tp->replaceConstants($this->xmlFileContents, '', true);
} }
if ($parse) if ($parse)
{ {