[Pkg-owncloud-commits] [owncloud] 102/121: Set maintaince mode when updating an app from the app store

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 16:44:40 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 75236b0ee6cde8daa538eae5623077c838e6be02
Author: Robin Appelman <icewind at owncloud.com>
Date:   Fri Jul 25 13:40:51 2014 +0200

    Set maintaince mode when updating an app from the app store
---
 settings/ajax/updateapp.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/settings/ajax/updateapp.php b/settings/ajax/updateapp.php
index 78f6775..afaa931 100644
--- a/settings/ajax/updateapp.php
+++ b/settings/ajax/updateapp.php
@@ -33,7 +33,10 @@ if (!is_numeric($appId)) {
 
 $appId = OC_App::cleanAppId($appId);
 
+\OC_Config::setValue('maintenance', true);
 $result = OC_Installer::updateAppByOCSId($appId, $isShipped);
+\OC_Config::setValue('maintenance', false);
+
 if($result !== false) {
 	OC_JSON::success(array('data' => array('appid' => $appId)));
 } else {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list