From dfbdae13e0b50650184805fd2bd241629a404359 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 5 Nov 2010 18:47:43 +0100 Subject: [PATCH] Fix scope. --- horde/admin/config/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/horde/admin/config/index.php b/horde/admin/config/index.php index 01ac685a9..f764cbf8a 100644 --- a/horde/admin/config/index.php +++ b/horde/admin/config/index.php @@ -30,7 +30,7 @@ function _uploadFTP($params) /* 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')) { @@ -45,7 +45,7 @@ function _uploadFTP($params) 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'); -- 2.11.0