Ignore:
Timestamp:
Feb 17, 2021, 5:15:29 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Insert sample data action partially implemented.
File:
1 edited

Legend:

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

    r899 r900  
    5959    $Output = $this->UpdateManager->Upgrade();
    6060    return $Output;
    61   }
    62 
    63   function InsertSampleData(): void
    64   {
    6561  }
    6662}
     
    8177    $this->FullTitle = T('Application setup');
    8278    $this->ShortTitle = T('Application setup');
    83     //$this->ParentClass = 'PagePortal';
     79    //$this->ParentClass = 'PageSetupRedirect';
    8480    $this->ConfigDir = dirname(dirname(dirname(__FILE__))).'/Config';
    8581    $this->YesNo = array(false => T('No'), true => T('Yes'));
     
    212208        {
    213209          $Output .= '<h3>Vložení vzorových dat</h3>';
    214           ModuleSetup::Cast($this->System->GetModule('Setup'))->InsertSampleData();
     210          $this->System->ModuleManager->Perform(array(ModuleAction::InsertSampleData), array(ModuleCondition::Installed));
    215211          $Output .= $this->ControlPanel();
    216212        }
Note: See TracChangeset for help on using the changeset viewer.