Changeset 903


Ignore:
Timestamp:
Feb 19, 2021, 10:12:21 AM (4 years ago)
Author:
chronos
Message:
  • Fixed: Check if core upgrade is needed and allow to perform upgrade.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/Core.php

    r899 r903  
    151151    $this->ModuleManager->LoadModule(dirname(__FILE__).'/../Packages/Common/Modules/ModuleManager.php');
    152152    if (file_exists($this->ModuleManager->FileName)) $this->ModuleManager->LoadState();
    153     $this->ModuleManager->StartAll(array(ModuleCondition::Enabled));
     153    if (ModuleSetup::Cast($ModuleSetup)->CheckState())
     154        {
     155      $this->ModuleManager->StartAll(array(ModuleCondition::Enabled));
     156    }
    154157  }
    155158
  • trunk/Application/Version.php

    r901 r903  
    11<?php
    22
    3 $Revision = 901; // Subversion revision
     3$Revision = 903; // Subversion revision
    44$DatabaseRevision = 901; // SQL structure revision
    5 $ReleaseTime = strtotime('2021-02-17');
     5$ReleaseTime = strtotime('2021-02-19');
  • trunk/Common/Global.php

    r902 r903  
    275275  $Result = true;
    276276  $RemoteAddr = GetRemoteAddress();
    277   foreach ($Config['Web']['IntranetSubnets'] as $Subnet)
     277  foreach (array_merge($Config['Web']['IntranetSubnets']) as $Subnet)
    278278  {
    279279    if (substr($RemoteAddr, 0, strlen($Subnet)) == $Subnet)
  • trunk/Packages/Common/Modules/Setup.php

    r901 r903  
    161161          try
    162162          {
     163            $Output .= ModuleSetup::Cast($this->System->GetModule('Setup'))->DoUpgrade();
    163164            $this->System->ModuleManager->UpgradeAll(array(ModuleCondition::System));
    164165          } catch (Exception $E)
Note: See TracChangeset for help on using the changeset viewer.