From 05f4be636d6bef47685805c312fe332c3ffbabff Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 18 Jul 2014 21:21:29 +0000 Subject: [PATCH] Hide svn on the upgrade page when the FusionPBX package is installed --- core/upgrade/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/upgrade/index.php b/core/upgrade/index.php index 30b17e4c8f..87695639dc 100644 --- a/core/upgrade/index.php +++ b/core/upgrade/index.php @@ -55,7 +55,7 @@ if (sizeof($_POST) > 0) { $do = $_POST['do']; // run svn update - if ($do["svn"] && permission_exists("upgrade_svn")) { + if ($do["svn"] && permission_exists("upgrade_svn") && !is_dir("/usr/share/fusionpbx")) { $cmd = "svn up /var/www/fusionpbx"; exec($cmd, $response_svn_update); if (sizeof($response_svn_update) > 0) { @@ -122,7 +122,7 @@ echo "


"; echo "
\n"; -if (permission_exists("upgrade_svn")) { +if (permission_exists("upgrade_svn") && !is_dir("/usr/share/fusionpbx")) { echo "\n"; echo "\n"; echo "
\n";