use key as class name
[phorkie.git] / src / phorkie / Tool / Manager.php
index 3bcf7508b15d3711b4f9a7ca200bc87f56d30bbc..8e18199d4dd5483b13532c83cfd2a50857769fdc 100644 (file)
@@ -8,7 +8,7 @@ class Tool_Manager
     {
         $ext = $file->getExt();
         $suitables = array();
     {
         $ext = $file->getExt();
         $suitables = array();
-        foreach ($GLOBALS['phorkie']['tools'] as $class) {
+        foreach ($GLOBALS['phorkie']['tools'] as $class => $arSetup) {
             if (array_search($ext, $class::$arSupportedExtensions) !== false) {
                 $suitables[] = new Tool_Info($class);
             }
             if (array_search($ext, $class::$arSupportedExtensions) !== false) {
                 $suitables[] = new Tool_Info($class);
             }