mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-04 20:42:53 +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:
@@ -48,7 +48,7 @@ function RemoteSiteReader($url, $listing_url)
|
||||
|
||||
if (!isset($listing_url))
|
||||
{
|
||||
$this->listing_url = $this->site_url.'/listing.xml';
|
||||
$this->listing_url = $this->site_url.'listing.xml';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -65,11 +65,10 @@ function open()
|
||||
{
|
||||
global $errors;
|
||||
|
||||
if (@fopen($this->listing_url, 'r'))
|
||||
if ($xml_content = getXmlCode($this->listing_url))
|
||||
{
|
||||
$this->site_dirs = array();
|
||||
$this->site_files = array();
|
||||
$xml_content = getXmlCode($this->listing_url);
|
||||
$info_xml_element = getChild($xml_content, 'informations');
|
||||
if (getAttribute($info_xml_element , 'phpwg_version') != PHPWG_VERSION)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user