aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions_xml.inc.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/functions_xml.inc.php b/include/functions_xml.inc.php
index 1a849d434..81ae48dde 100644
--- a/include/functions_xml.inc.php
+++ b/include/functions_xml.inc.php
@@ -121,18 +121,11 @@ function getXmlCode( $filename )
ini_set("pcre.backtrack_limit", pow(2, 32));
}
- $file = fopen( $filename, 'r' );
- if ( !$file )
+ if (!fetchRemote($filename, $xml_content))
{
return false;
}
- $xml_content = '';
- while ( !feof( $file ) )
- {
- $xml_content .= fgets( $file, 1024 );
- }
- fclose( $file );
$xml_content = str_replace( "\n", '', $xml_content );
$xml_content = str_replace( "\t", '', $xml_content );