Skip to content

Commit 85f264d

Browse files
committed
Look for backup config in var/config/ dir, too
1 parent fe73cf7 commit 85f264d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

admin/config/config.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,17 @@
3434

3535
$form = new Horde_Config_Form($vars, $app);
3636
$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 = '';
4237
if (defined(HORDE_CONFIG_BASE)) {
4338
$path = HORDE_CONFIG_BASE . DIRECTORY_SEPARATOR . $app;
4439
} else {
4540
$path = $registry->get('fileroot', $app) . '/config';
4641
}
42+
43+
if (file_exists($path . '/config/conf.bak.php')) {
44+
$form->appendButtons(_("Revert Configuration"));
45+
}
46+
47+
$php = '';
4748
$configFile = $path . '/conf.php';
4849
if (is_link($configFile)) {
4950
$configFile = readlink($configFile);

0 commit comments

Comments
 (0)