Don't overwrite the global cfgSources array
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 31 Jan 2010 18:57:57 +0000 (13:57 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 31 Jan 2010 18:57:57 +0000 (13:57 -0500)
turba/lib/Application.php

index 53996b2..709e21c 100644 (file)
@@ -170,9 +170,8 @@ class Turba_Application extends Horde_Registry_Application
 
         /* Assign variables for select lists. */
         if (!$GLOBALS['prefs']->isLocked('default_dir')) {
-            require TURBA_BASE . '/config/sources.php';
             $out['default_dir_options'] = array();
-            foreach ($cfgSources as $key => $info) {
+            foreach ($GLOBALS['cfgSources'] as $key => $info) {
                 $out['default_dir_options'][$key] = $info['title'];
             }
         }