aboutsummaryrefslogtreecommitdiff
path: root/www/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/index.php')
-rw-r--r--www/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/index.php b/www/index.php
index f99ab0d..5711b87 100644
--- a/www/index.php
+++ b/www/index.php
@@ -83,7 +83,7 @@ if (!$galerie) {
while ($file = $adr->Read()) {
// checking for inc is only really needed when gallery_dir == $root
// hopefully not many galleries will be named inc ;)
- if (is_dir("$gallery_dir/$file") && !ereg("\.", $file) && $file!="inc") {
+ if (is_dir("$gallery_dir/$file") && !preg_match("/\./", $file) && $file!="inc") {
// Use date file for gallery date if avaliable
// info.txt format described in README
readInfo("$root/$gallery_dir/$file/info.txt", $file);