$OUT = ""; $ral = array();
$BASE = sprintf("%stemplates/%s/html/rallye/", constant('PATH'), GET_LANGUAGE());
$dir = opendir($BASE);
- while ($read = readdir($dir))
- {
+ while ($read = readdir($dir)) {
// If it is no dir (so a file)
- if (!is_dir($BASE.$read))
- {
+ if (!isDirectory($BASE.$read)) {
// Accept only templates matching with rallye_????.tpl.xx
if (eregi("^rallye_.*\.tpl", $read))
{