Merge pull request #9571 from owncloud/fix_appstore_update_issue

Fix update to button issue
remotes/origin/fix-10825
Vincent Petry 12 years ago
commit e58dce2ee0
  1. 9
      lib/private/app.php
  2. 3
      lib/private/installer.php

@ -831,13 +831,8 @@ class OC_App {
// Remove duplicates
foreach ($appList as $app) {
foreach ($remoteApps AS $key => $remote) {
if (
$app['name'] == $remote['name']
// To set duplicate detection to use OCS ID instead of string name,
// enable this code, remove the line of code above,
// and add <ocs_id>[ID]</ocs_id> to info.xml of each 3rd party app:
// OR $app['ocs_id'] == $remote['ocs_id']
) {
if ($app['name'] === $remote['name'] ||
$app['ocsid'] === $remote['id']) {
unset($remoteApps[$key]);
}
}

@ -377,9 +377,8 @@ class OC_Installer{
$ocsdata=OC_OCSClient::getApplication($ocsid);
$ocsversion= (string) $ocsdata['version'];
$currentversion=OC_App::getAppVersion($app);
if($ocsversion<>$currentversion) {
if (version_compare($ocsversion, $currentversion, '>')) {
return($ocsversion);
}else{
return false;
}

Loading…
Cancel
Save