Revert "We expect an array back, so pass it an array."
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 25 Aug 2010 04:41:27 +0000 (22:41 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 25 Aug 2010 04:42:44 +0000 (22:42 -0600)
This reverts commit ab3d724ed9c4ef81741600076a87a66e891717cd.

We *do* get an array back when passing the variable name as a string,
and we avoid an unneeded compact() call.  And, more important, this
broke display of every mime driver.

framework/Core/lib/Horde/Core/Factory/MimeViewer.php

index fcc189e..61e7b21 100644 (file)
@@ -240,7 +240,7 @@ class Horde_Core_Factory_MimeViewer
         }
 
         try {
-            $aconfig = Horde::loadConfiguration('mime_drivers.php', array('mime_drivers'), $app);
+            $aconfig = Horde::loadConfiguration('mime_drivers.php', 'mime_drivers', $app);
         } catch (Horde_Exception $e) {
             $aconfig = array();
         }