We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe73cf7 commit 85f264dCopy full SHA for 85f264d
admin/config/config.php
@@ -34,16 +34,17 @@
34
35
$form = new Horde_Config_Form($vars, $app);
36
$form->setButtons(sprintf(_("Generate %s Configuration"), $appname));
37
-if (file_exists($registry->get('fileroot', $app) . '/config/conf.bak.php')) {
38
- $form->appendButtons(_("Revert Configuration"));
39
-}
40
-
41
-$php = '';
42
if (defined(HORDE_CONFIG_BASE)) {
43
$path = HORDE_CONFIG_BASE . DIRECTORY_SEPARATOR . $app;
44
} else {
45
$path = $registry->get('fileroot', $app) . '/config';
46
}
+
+if (file_exists($path . '/config/conf.bak.php')) {
+ $form->appendButtons(_("Revert Configuration"));
+}
47
+$php = '';
48
$configFile = $path . '/conf.php';
49
if (is_link($configFile)) {
50
$configFile = readlink($configFile);
0 commit comments