Ignore:
Timestamp:
Nov 3, 2013, 11:39:59 PM (11 years ago)
Author:
chronos
Message:
  • Upraveno: Zahrnutí konfiguračního souboru přesunuto do aplikačního souboru z globálního obecného.
  • Upraveno: V modulu Setup použití již existující instance UpdateManager.
  • Opraveno: Chybné vracení pole aktualizací.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Setup/Setup.php

    r594 r595  
    6969          global $ConfigDefinition, $DatabaseRevision, $Config, $Updates;
    7070         
     71          $this->UpdateManager = $this->System->Setup->UpdateManager;
    7172          $DefaultConfig = new DefaultConfig();
    7273          $this->ConfigDefinition = $DefaultConfig->Get();
    7374          $this->DatabaseRevision = $DatabaseRevision;
    74           $this->Config = &$Config;
    75           $Updates = new Updates();
    76           $this->Updates = $Updates->Get();
     75          $this->Config = &$Config;
    7776
    7877          $Output = '';
     
    8584        $Output .= $this->LoginPanel();
    8685      } else
    87       {
    88         $this->UpdateManager = new UpdateManager();
    89         $this->UpdateManager->Database = $this->Database;
    90         $this->UpdateManager->Revision = $this->DatabaseRevision;
    91         $this->UpdateManager->Trace = $this->Updates;
    92         $this->UpdateManager->InstallMethod = 'FullInstall';
    93  
     86      { 
    9487        if(array_key_exists('action', $_GET)) $Action = $_GET['action'];
    9588          else $Action = '';
     
    322315  function CreateConfig($Config)
    323316  {
    324  
    325317    $Output = "<?php\n\n".
    326318        "\$IsDeveloper = in_array(\$_SERVER['REMOTE_ADDR'], array('127.0.0.1'));\n\n";
     
    378370    // Check database persistence structure
    379371    $this->UpdateManager = new UpdateManager();
    380     $this->UpdateManager->Database = &$this->Database;
     372    $this->UpdateManager->Database = $this->Database;
    381373    $this->UpdateManager->Revision = $DatabaseRevision;
     374    $Updates = new Updates();
     375    $this->UpdateManager->Trace = $Updates->Get();
     376    $this->UpdateManager->InstallMethod = 'FullInstall';
    382377  } 
    383378 
Note: See TracChangeset for help on using the changeset viewer.