don't rely on the old version in info.xml anymore

This commit is contained in:
Robin Appelman 2012-04-14 19:01:32 +02:00
parent fbb314ef4b
commit 4410f15dd8
3 changed files with 4 additions and 4 deletions

View File

@ -482,7 +482,7 @@ class OC_App{
if ($currentVersion) {
if (version_compare($currentVersion, $installedVersion, '>')) {
OC_App::updateApp($app);
OC_Appconfig::setValue($app,'installed_version',$appInfo['version']);
OC_Appconfig::setValue($app,'installed_version',getAppVersion($app));
}
}
}

View File

@ -175,7 +175,7 @@ class OC_Installer{
}
//set the installed version
OC_Appconfig::setValue($info['id'],'installed_version',$info['version']);
OC_Appconfig::setValue($info['id'],'installed_version',OC_App::getAppVersion($info['id']));
OC_Appconfig::setValue($info['id'],'enabled','no');
return $info['id'];
}
@ -297,7 +297,7 @@ class OC_Installer{
include(OC::$APPSROOT."/apps/$app/appinfo/install.php");
}
$info=OC_App::getAppInfo($app);
OC_Appconfig::setValue($app,'installed_version',$info['version']);
OC_Appconfig::setValue($app,'installed_version',OC_App::getAppVersion('version']));
return $info;
}
}

View File

@ -434,7 +434,7 @@ class OC_Migrate{
// Now add some app info the the return array
$appinfo = OC_App::getAppInfo( $provider->getID() );
$return['apps'][$provider->getID()]['version'] = $appinfo['version'];
$return['apps'][$provider->getID()]['version'] = OC_App::getAppVersion($provider->getID());
}