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 /admin/site_reader_remote.php | |
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-- | admin/site_reader_remote.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/admin/site_reader_remote.php b/admin/site_reader_remote.php index 31ae3e792..5c350acf8 100644 --- a/admin/site_reader_remote.php +++ b/admin/site_reader_remote.php @@ -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) { |