diff options
-rw-r--r-- | inc/pageutils.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php index ef09dc7b6..cd3cf1fce 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -318,15 +318,7 @@ function metaFiles($id){ $ns = getNS($id); $dir = ($ns) ? metaFN($ns,'').'/' : metaFN($ns,''); $files = array(); - - $dh = @opendir($dir); - if(!$dh) return $files; - while(($file = readdir($dh)) !== false){ - if(strpos($file,$name.'.') === 0 && !is_dir($dir.$file)) - $files[] = $dir.$file; - } - closedir($dh); - + $files = glob($dir.$name.'.*'); return $files; } |