/* Loop through the config and write to FTP. */
$no_errors = true;
- foreach ($session->get('horde', 'config/') as $app => $config) {
+ foreach ($GLOBALS['session']->get('horde', 'config/') as $app => $config) {
$path = $registry->get('fileroot', $app) . '/config';
/* Try to back up the current conf.php. */
if ($vfs->exists($path, 'conf.php')) {
try {
$vfs->writeData($path, 'conf.php', $config);
$notification->push(sprintf(_("Successfully wrote %s"), Horde_Util::realPath($path . '/conf.php')), 'horde.success');
- $session->remove('horde', 'config/' . $app);
+ $GLOBALS['session']->remove('horde', 'config/' . $app);
} catch (VFS_Exception $e) {
$no_errors = false;
$notification->push(sprintf(_("Could not write configuration for \"%s\": %s"), $app, $e->getMessage()), 'horde.error');