Ignore:
Timestamp:
Jun 11, 2012, 10:08:38 PM (12 years ago)
Author:
chronos
Message:
  • Upraveno: Instalace a odinstalace základních modulů v opačném pořadí.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Modular/Common/Module.php

    r401 r403  
    4545  {
    4646    DebugLog('Uninstalling module '.$this->Name.'...');
    47     foreach($this->Models as $Index => $Model)
     47    $this->LoadModels();
     48    foreach(array_reverse($this->Models, true) as $Index => $Model)
    4849    {
    4950      $this->Models[$Index]->UnInstall();
     
    170171    $this->ReloadList();
    171172    $this->LoadModules(false);
    172     $this->Modules['System']->Install();
    173     //foreach($this->Modules as $Index => $Module)
    174     //{     
    175     //  $this->Modules[$Index]->Install();
    176     //}
     173    //$this->Modules['System']->Install();
     174    foreach($this->Modules as $Index => $Module)
     175    {     
     176      $this->Modules[$Index]->Install();
     177    }
    177178  }
    178179 
     
    180181  {
    181182    DebugLog('Uninstalling modular system core...');
    182     foreach($this->Modules as $Index => $Module)
     183    foreach(array_reverse($this->Modules, true) as $Index => $Module)
    183184      $this->Modules[$Index]->UnInstall();
    184185   
Note: See TracChangeset for help on using the changeset viewer.