Browse Source

[FIX] Check if method exists in update.php script

Fix so we could use update.php with the previous version of system
where this method was not present
tags/v1.8.2.4
Adam Bukowski 4 years ago
parent
commit
4ffc65324b
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      update.php

+ 8
- 1
update.php View File

@@ -340,7 +340,14 @@ class EpesiUpdate
define('CID', false);
require_once 'include.php';
require_once 'include/backups.php';
ModuleManager::enable_modules(ModuleManager::MODULE_NOT_FOUND);

// Enable all disabled modules
// check if method exists, because we recommend to use this update
// script on older installations where method was not present
if (method_exists('ModuleManager', 'enable_modules')) {
ModuleManager::enable_modules(ModuleManager::MODULE_NOT_FOUND);
}

ModuleManager::load_modules();
Base_LangCommon::load();



Loading…
Cancel
Save