don't rely on the old version in info.xml anymore
This commit is contained in:
parent
fbb314ef4b
commit
4410f15dd8
|
@ -482,7 +482,7 @@ class OC_App{
|
||||||
if ($currentVersion) {
|
if ($currentVersion) {
|
||||||
if (version_compare($currentVersion, $installedVersion, '>')) {
|
if (version_compare($currentVersion, $installedVersion, '>')) {
|
||||||
OC_App::updateApp($app);
|
OC_App::updateApp($app);
|
||||||
OC_Appconfig::setValue($app,'installed_version',$appInfo['version']);
|
OC_Appconfig::setValue($app,'installed_version',getAppVersion($app));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -175,7 +175,7 @@ class OC_Installer{
|
||||||
}
|
}
|
||||||
|
|
||||||
//set the installed version
|
//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');
|
OC_Appconfig::setValue($info['id'],'enabled','no');
|
||||||
return $info['id'];
|
return $info['id'];
|
||||||
}
|
}
|
||||||
|
@ -297,7 +297,7 @@ class OC_Installer{
|
||||||
include(OC::$APPSROOT."/apps/$app/appinfo/install.php");
|
include(OC::$APPSROOT."/apps/$app/appinfo/install.php");
|
||||||
}
|
}
|
||||||
$info=OC_App::getAppInfo($app);
|
$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;
|
return $info;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -434,7 +434,7 @@ class OC_Migrate{
|
||||||
|
|
||||||
// Now add some app info the the return array
|
// Now add some app info the the return array
|
||||||
$appinfo = OC_App::getAppInfo( $provider->getID() );
|
$appinfo = OC_App::getAppInfo( $provider->getID() );
|
||||||
$return['apps'][$provider->getID()]['version'] = $appinfo['version'];
|
$return['apps'][$provider->getID()]['version'] = OC_App::getAppVersion($provider->getID());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue