1
0

ereg() replacement

This commit is contained in:
Garvin Hicking
2009-09-04 08:51:16 +00:00
parent 541254e85c
commit 47aa8c2f72
3 changed files with 8 additions and 8 deletions

View File

@ -222,7 +222,7 @@ function serendipity_fetchTemplates($dir = '') {
return $rv;
}
while (($file = readdir($cdir)) !== false) {
if (is_dir($serendipity['serendipityPath'] . $serendipity['templatePath'] . $dir . $file) && !ereg('^(\.|CVS)', $file) && !file_exists($serendipity['serendipityPath'] . $serendipity['templatePath'] . $dir . $file . '/inactive.txt')) {
if (is_dir($serendipity['serendipityPath'] . $serendipity['templatePath'] . $dir . $file) && !preg_match('@^(\.|CVS)@i', $file) && !file_exists($serendipity['serendipityPath'] . $serendipity['templatePath'] . $dir . $file . '/inactive.txt')) {
if (file_exists($serendipity['serendipityPath'] . $serendipity['templatePath'] . $dir . $file . '/info.txt')) {
$key = strtolower($file);
if (isset($rv[$key])) {