diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-04-14 19:01:32 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-04-14 19:01:59 +0200 |
commit | 4410f15dd8259ceb0cfda7cbf6b435d3ecfd239a (patch) | |
tree | 974383e4321fba76d8b3c8d08f520f615b42d514 /lib/installer.php | |
parent | fbb314ef4b980500af270c1a58577f32a5de8b48 (diff) | |
download | nextcloud-server-4410f15dd8259ceb0cfda7cbf6b435d3ecfd239a.tar.gz nextcloud-server-4410f15dd8259ceb0cfda7cbf6b435d3ecfd239a.zip |
don't rely on the old version in info.xml anymore
Diffstat (limited to 'lib/installer.php')
-rw-r--r-- | lib/installer.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/installer.php b/lib/installer.php index 38e17130e3c..044bc9a13d1 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; } } |