mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-02 03:22:50 +02:00
merge -c2902 from trunk to branch 2.0.
- 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/branches/2.0@2903 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user