|
14 | 14 | * @package Horde |
15 | 15 | */ |
16 | 16 |
|
| 17 | +use Horde\Util\ArrayUtils; |
| 18 | +use Horde\Util\Util; |
| 19 | +use Horde\Util\Variables; |
| 20 | + |
17 | 21 | require_once __DIR__ . '/../../lib/Application.php'; |
18 | 22 | Horde_Registry::appInit('horde', [ |
19 | 23 | 'permission' => ['horde:administration:configuration'], |
@@ -50,7 +54,7 @@ function _uploadFTP($params) |
50 | 54 |
|
51 | 55 | try { |
52 | 56 | $vfs->writeData($path, 'conf.php', $config); |
53 | | - $notification->push(sprintf(_("Successfully wrote %s"), Horde_Util::realPath($path . '/conf.php')), 'horde.success'); |
| 57 | + $notification->push(sprintf(_("Successfully wrote %s"), Util::realPath($path . '/conf.php')), 'horde.success'); |
54 | 58 | $GLOBALS['session']->remove('horde', 'config/' . $app); |
55 | 59 | } catch (Horde_Vfs_Exception $e) { |
56 | 60 | $no_errors = false; |
@@ -110,13 +114,13 @@ function _uploadFTP($params) |
110 | 114 | && $xml_ver == $php_ver)))) { |
111 | 115 | continue; |
112 | 116 | } |
113 | | - $vars = new Horde_Variables(); |
| 117 | + $vars = new Variables(); |
114 | 118 | $form = new Horde_Config_Form($vars, $app, true); |
115 | 119 | $form->setSubmitted(true); |
116 | 120 | if ($form->validate($vars)) { |
117 | 121 | $config = new Horde_Config($app); |
118 | 122 | if (!$config->writePHPConfig($vars)) { |
119 | | - $notification->push(sprintf(_("Could not save the configuration file %s. Use one of the options below to save the code."), Horde_Util::realPath($config->configFile())), 'horde.warning', ['content.raw', 'sticky']); |
| 123 | + $notification->push(sprintf(_("Could not save the configuration file %s. Use one of the options below to save the code."), Util::realPath($config->configFile())), 'horde.warning', ['content.raw', 'sticky']); |
120 | 124 | } |
121 | 125 | } else { |
122 | 126 | $notification->push(sprintf(_("The configuration for %s cannot be updated automatically. Please update the configuration manually."), $app), 'horde.error'); |
@@ -404,7 +408,7 @@ function _uploadFTP($params) |
404 | 408 | } |
405 | 409 |
|
406 | 410 | /* Sort the apps by name. */ |
407 | | -Horde_Array::arraySort($apps, 'sort'); |
| 411 | +ArrayUtils::arraySort($apps, 'sort'); |
408 | 412 |
|
409 | 413 | /* Set up any actions that may be offered. */ |
410 | 414 | $actions = []; |
@@ -438,7 +442,7 @@ function _uploadFTP($params) |
438 | 442 | ]; |
439 | 443 |
|
440 | 444 | /* Set up the form for FTP upload of scripts. */ |
441 | | - $vars = Horde_Variables::getDefaultVariables(); |
| 445 | + $vars = Variables::getDefaultVariables(); |
442 | 446 | $ftpform = new Horde_Form($vars); |
443 | 447 | $ftpform->setButtons(_("Upload"), true); |
444 | 448 | $ftpform->addVariable(_("Username"), 'username', 'text', true, false, null, ['', 20]); |
@@ -480,7 +484,7 @@ function _uploadFTP($params) |
480 | 484 | $view->ftpform = $ftpform; |
481 | 485 | $view->schema_outdated = $schema_outdated; |
482 | 486 | $view->version_action = Horde::url('admin/config/index.php'); |
483 | | -$view->version_input = Horde_Util::formInput(); |
| 487 | +$view->version_input = Util::formInput(); |
484 | 488 | $view->versions = !empty($versions); |
485 | 489 |
|
486 | 490 | $page_output->addScriptFile('stripe.js', 'horde'); |
|
0 commit comments