From 96d8a314ddb088a36354cf6662387e7f4fd22424 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 11 Mar 2007 23:17:14 +0000 Subject: [PATCH] Updating makepo.sh.php to reflect the new way ScanDir() works --- docs/makepo.sh.php | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/docs/makepo.sh.php b/docs/makepo.sh.php index 554c021..1c8b74c 100755 --- a/docs/makepo.sh.php +++ b/docs/makepo.sh.php @@ -27,24 +27,20 @@ require_once('/Server/htdocs/ISSO/Functions.php'); $filelist = BSFunctions::ScanDirectory('.'); -foreach ($filelist AS $dirpath => $nodes) +foreach ($filelist AS $file) { - $dirpath = ($dirpath ? BSFunctions::FetchSourcePath($dirpath) : ''); - foreach ($nodes AS $file) + $ext = BSFunctions::FetchExtension($file); + if ($ext == 'php') { - $ext = BSFunctions::FetchExtension($file); - if ($ext == 'php') - { - $files["$dirpath"] = BSFunctions::FetchSourcePath('./' . $dirpath) . '*.php'; - } - else if ($ext == 'xml' OR $ext == 'tpl' OR $ext == 'html' OR $ext == 'htm') - { - $files["$dirpath"] = BSFunctions::FetchSourcePath('./' . $dirpath) . '*.php'; - $templates[] = array( - 'orig' => BSFunctions::FetchSourcePath('./' . $dirpath) . $file, - 'temp' => BSFunctions::FetchSourcePath('./' . $dirpath) . $file . '.xgt.php' - ); - } + $files["$dirpath"] = BSFunctions::FetchSourcePath('./' . $dirpath) . '*.php'; + } + else if ($ext == 'xml' OR $ext == 'tpl' OR $ext == 'html' OR $ext == 'htm') + { + $files["$dirpath"] = BSFunctions::FetchSourcePath('./' . $dirpath) . '*.php'; + $templates[] = array( + 'orig' => BSFunctions::FetchSourcePath('./' . $dirpath) . $file, + 'temp' => BSFunctions::FetchSourcePath('./' . $dirpath) . $file . '.xgt.php' + ); } } -- 2.22.5