diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-02-18 11:32:56 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-02-18 11:32:56 -0200 |
commit | f1e819c4e3c002b61e8158ffe4c6d28ec6e4feb0 (patch) | |
tree | 7e60d3391a44c0b597d23f554b58d7252bf5f382 /www/index.php | |
parent | 43635311c43229b70818ad78b9b1786640e4f440 (diff) | |
download | original-f1e819c4e3c002b61e8158ffe4c6d28ec6e4feb0.tar.gz original-f1e819c4e3c002b61e8158ffe4c6d28ec6e4feb0.tar.bz2 |
Avoiding deprecation notices
Diffstat (limited to 'www/index.php')
-rw-r--r-- | www/index.php | 2 |
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); |