Changeset 595 for trunk/Common/Setup/Setup.php
- Timestamp:
- Nov 3, 2013, 11:39:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Setup/Setup.php
r594 r595 69 69 global $ConfigDefinition, $DatabaseRevision, $Config, $Updates; 70 70 71 $this->UpdateManager = $this->System->Setup->UpdateManager; 71 72 $DefaultConfig = new DefaultConfig(); 72 73 $this->ConfigDefinition = $DefaultConfig->Get(); 73 74 $this->DatabaseRevision = $DatabaseRevision; 74 $this->Config = &$Config; 75 $Updates = new Updates(); 76 $this->Updates = $Updates->Get(); 75 $this->Config = &$Config; 77 76 78 77 $Output = ''; … … 85 84 $Output .= $this->LoginPanel(); 86 85 } 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 { 94 87 if(array_key_exists('action', $_GET)) $Action = $_GET['action']; 95 88 else $Action = ''; … … 322 315 function CreateConfig($Config) 323 316 { 324 325 317 $Output = "<?php\n\n". 326 318 "\$IsDeveloper = in_array(\$_SERVER['REMOTE_ADDR'], array('127.0.0.1'));\n\n"; … … 378 370 // Check database persistence structure 379 371 $this->UpdateManager = new UpdateManager(); 380 $this->UpdateManager->Database = &$this->Database;372 $this->UpdateManager->Database = $this->Database; 381 373 $this->UpdateManager->Revision = $DatabaseRevision; 374 $Updates = new Updates(); 375 $this->UpdateManager->Trace = $Updates->Get(); 376 $this->UpdateManager->InstallMethod = 'FullInstall'; 382 377 } 383 378
Note:
See TracChangeset
for help on using the changeset viewer.