diff --git a/lib/app.php b/lib/app.php index 5fccf1fe68f60809d5dee0a1f70f564cd4984921..1c4a752d8da4a406386c7f6b0a8194b2f4fe7ff9 100755 --- a/lib/app.php +++ b/lib/app.php @@ -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)); } } } diff --git a/lib/installer.php b/lib/installer.php index 38e17130e3c5ff55b96e9b50cca33457e652b5ab..044bc9a13d109fa871f370df885e5a98fb1d7826 100644 --- a/lib/installer.php +++ b/lib/installer.php @@ -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; } } diff --git a/lib/migrate.php b/lib/migrate.php index dfc3494896217ed667a517c5050676f6db478da9..f46d860e806500d1f81faf622023d8991083fbda 100644 --- a/lib/migrate.php +++ b/lib/migrate.php @@ -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()); }