1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57: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
*
* $Source: /cvs_backup/e107_0.8/e107_handlers/xml_class.php,v $
* $Revision: 1.38 $
* $Date: 2009-11-26 17:14:06 $
* $Author: secretr $
* $Revision: 1.39 $
* $Date: 2010-02-07 00:44:08 $
* $Author: e107coders $
*/
if (!defined('e107_INIT')) { exit; }
@@ -286,6 +286,7 @@ class xmlClass
}
if ($data)
{
$this->xmlFileContents = $data;
return $data;
}
}
@@ -613,6 +614,8 @@ class xmlClass
*/
function loadXMLfile($fname, $parse = false, $replace_constants = false)
{
global $tp;
if (empty($fname))
{
return false;
@@ -633,7 +636,7 @@ class xmlClass
{
if ($replace_constants == true)
{
$this->xmlFileContents = e107::getParser()->replaceConstants($this->xmlFileContents, '', true);
$this->xmlFileContents = $tp->replaceConstants($this->xmlFileContents, '', true);
}
if ($parse)
{