Merge pull request #8424 from nextcloud/fix/update-app
Fix updating an app
This commit is contained in:
commit
4e6d98ea8c
|
@ -385,7 +385,7 @@ class Updater extends BasicEmitter {
|
||||||
private function checkAppsRequirements() {
|
private function checkAppsRequirements() {
|
||||||
$isCoreUpgrade = $this->isCodeUpgrade();
|
$isCoreUpgrade = $this->isCodeUpgrade();
|
||||||
$apps = OC_App::getEnabledApps();
|
$apps = OC_App::getEnabledApps();
|
||||||
$version = Util::getVersion();
|
$version = implode('.', Util::getVersion());
|
||||||
$disabledApps = [];
|
$disabledApps = [];
|
||||||
$appManager = \OC::$server->getAppManager();
|
$appManager = \OC::$server->getAppManager();
|
||||||
foreach ($apps as $app) {
|
foreach ($apps as $app) {
|
||||||
|
|
|
@ -915,7 +915,7 @@ class OC_App {
|
||||||
* @param string $appId
|
* @param string $appId
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public static function updateApp(sstring $appId): bool {
|
public static function updateApp(string $appId): bool {
|
||||||
$appPath = self::getAppPath($appId);
|
$appPath = self::getAppPath($appId);
|
||||||
if($appPath === false) {
|
if($appPath === false) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue