Browse Source

Improve update process - make sure maintenance mode is on during patches

tags/v1.6.4
Adam Bukowski 6 years ago
parent
commit
6ba906d7b2
2 changed files with 7 additions and 0 deletions
  1. +1
    -0
      docs/CHANGELOG.md
  2. +6
    -0
      update.php

+ 1
- 0
docs/CHANGELOG.md View File

@@ -7,6 +7,7 @@ CURRENT
-------

- Change cookie expiration time to 7 days for maintenance mode
- Improve update process - make sure maintenance mode is on during patches

RELEASE 1.6.3-20150107
-------


+ 6
- 0
update.php View File

@@ -283,6 +283,8 @@ class EpesiUpdate

protected function turn_on_maintenance_mode()
{
if (MaintenanceMode::is_on()) return;

$msg = __('EPESI is currently updating. Please wait or contact your system administrator.');
if ($this->CLI) {
MaintenanceMode::turn_on($msg);
@@ -308,6 +310,8 @@ class EpesiUpdate

protected function perform_update_patches($browser = true)
{
$this->turn_on_maintenance_mode();

$patches = PatchUtil::apply_new(true);

if ($browser) {
@@ -352,6 +356,8 @@ class EpesiUpdate

protected function perform_update_end()
{
$this->turn_on_maintenance_mode();

Base_ThemeCommon::themeup();
Base_LangCommon::update_translations();
ModuleManager::create_load_priority_array();


Loading…
Cancel
Save