diff options
author | patdenice <patdenice@piwigo.org> | 2008-11-23 17:23:57 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2008-11-23 17:23:57 +0000 |
commit | c74e2ab49ee08101b38b3904a49037fcd6f9403c (patch) | |
tree | b1c5cdaa0af1f3e63ad4375bdef1d3e5576a1b86 /include | |
parent | 61d8bf79c169e601b480bf54fc393c453b8874a0 (diff) |
- Add home and identification buttons after installation.
- Use fetchRemote function for remote site actions.
- Corrections in fetchRemote fnction.
- Move PLUGIN_PICTURE_BEFORE in picture.tpl.
git-svn-id: http://piwigo.org/svn/trunk@2902 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/functions_xml.inc.php | 9 |
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 ); |