Fix updating an up
OC_App has been made strict recently and the updater code was not compatible to this. This adds the array to string conversion of the Nextcloud version and fixes a typo in OC_App (sstring -> string) Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
b3ca73dc27
commit
1a8916af59
2 changed files with 2 additions and 2 deletions
|
@ -385,7 +385,7 @@ class Updater extends BasicEmitter {
|
|||
private function checkAppsRequirements() {
|
||||
$isCoreUpgrade = $this->isCodeUpgrade();
|
||||
$apps = OC_App::getEnabledApps();
|
||||
$version = Util::getVersion();
|
||||
$version = implode('.', Util::getVersion());
|
||||
$disabledApps = [];
|
||||
$appManager = \OC::$server->getAppManager();
|
||||
foreach ($apps as $app) {
|
||||
|
|
|
@ -915,7 +915,7 @@ class OC_App {
|
|||
* @param string $appId
|
||||
* @return bool
|
||||
*/
|
||||
public static function updateApp(sstring $appId): bool {
|
||||
public static function updateApp(string $appId): bool {
|
||||
$appPath = self::getAppPath($appId);
|
||||
if($appPath === false) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue