Rewritten a lot double-quotes to single-requotes, removed deprecated exception, some...
[core.git] / inc / selector.php
index 33a4fa966e7a05e6d33ef2aeaca489539a3cb902..7e7dee502a316feb47ebdecce3af46a4feb6e6b5 100644 (file)
@@ -46,11 +46,7 @@ foreach ($configAppIncludes as $inc) {
        }
 
        // Generate a FQFN for the helper class
-       $fqfn = sprintf("%s%s/%s.php",
-               $cfg->readConfig('application_path'),
-               $cfg->readConfig('app_name'),
-               $inc
-       );
+       $fqfn = $cfg->readConfig('application_path') . $cfg->readConfig('app_name') . '/' . $inc . '.php';
 
        // Does the include file exists?
        if ((file_exists($fqfn)) && (is_file($fqfn)) && (is_readable($fqfn))) {
@@ -64,5 +60,8 @@ foreach ($configAppIncludes as $inc) {
        }
 }
 
+// Remove variables from namespace, which we don't need
+unset($cfg, $inc, $configAppIncludes, $fqfn);
+
 // [EOF]
 ?>