From f1e819c4e3c002b61e8158ffe4c6d28ec6e4feb0 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 18 Feb 2011 11:32:56 -0200 Subject: Avoiding deprecation notices --- www/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'www/index.php') 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); -- cgit v1.2.3