aboutsummaryrefslogtreecommitdiffstats
path: root/admin/site_reader_local.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/site_reader_local.php')
-rw-r--r--admin/site_reader_local.php15
1 files changed, 6 insertions, 9 deletions
diff --git a/admin/site_reader_local.php b/admin/site_reader_local.php
index d6110d579..7e618ca17 100644
--- a/admin/site_reader_local.php
+++ b/admin/site_reader_local.php
@@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2013 Piwigo Team http://piwigo.org |
+// | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@@ -52,12 +52,9 @@ function open()
if (!is_dir($this->site_url))
{
- array_push(
- $errors,
- array(
- 'path' => $this->site_url,
- 'type' => 'PWG-ERROR-NO-FS'
- )
+ $errors[] = array(
+ 'path' => $this->site_url,
+ 'type' => 'PWG-ERROR-NO-FS'
);
return false;
@@ -108,12 +105,12 @@ function get_elements($path)
);
}
}
- elseif (is_dir($path.'/'.$node)
+ else if (is_dir($path.'/'.$node)
and $node != 'pwg_high'
and $node != 'pwg_representative'
and $node != 'thumbnail' )
{
- array_push($subdirs, $node);
+ $subdirs[] = $node;
}
} //end while readdir
closedir($contents);