diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-09 22:48:27 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-23 23:16:28 +0100 |
commit | 39d84069337d7d6ddcaed7b1daba37cfeb26dcc7 (patch) | |
tree | fd7bb14caa1845c8444e2eaf3f6784fe19ff0a04 /lib/private/installer.php | |
parent | 0cdc2cebbf9551652cc6df0433126bd840169e8a (diff) | |
download | nextcloud-server-39d84069337d7d6ddcaed7b1daba37cfeb26dcc7.tar.gz nextcloud-server-39d84069337d7d6ddcaed7b1daba37cfeb26dcc7.zip |
don't allow installation of already installed apps - fixes #14004
Diffstat (limited to 'lib/private/installer.php')
-rw-r--r-- | lib/private/installer.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/private/installer.php b/lib/private/installer.php index cbd47f5b14c..7f2fc6a73d3 100644 --- a/lib/private/installer.php +++ b/lib/private/installer.php @@ -36,6 +36,11 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ +use OC\OCSClient; + +/** + * This class provides the functionality needed to install, update and remove plugins/apps + */ class OC_Installer{ /** @@ -215,8 +220,8 @@ class OC_Installer{ * @throws Exception */ public static function updateAppByOCSId($ocsid) { - $appdata = OC_OCSClient::getApplication($ocsid); - $download = OC_OCSClient::getApplicationDownload($ocsid, 1); + $appdata = OCSClient::getApplication($ocsid); + $download = OCSClient::getApplicationDownload($ocsid, 1); if (isset($download['downloadlink']) && trim($download['downloadlink']) !== '') { $download['downloadlink'] = str_replace(' ', '%20', $download['downloadlink']); @@ -378,7 +383,7 @@ class OC_Installer{ if($ocsid<>'') { - $ocsdata=OC_OCSClient::getApplication($ocsid); + $ocsdata=OCSClient::getApplication($ocsid); $ocsversion= (string) $ocsdata['version']; $currentversion=OC_App::getAppVersion($app); if (version_compare($ocsversion, $currentversion, '>')) { |