Ignore:
Timestamp:
Jun 1, 2023, 1:01:38 AM (12 months ago)
Author:
chronos
Message:
  • Fixed: Modules initialization.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/User.php

    r8 r9  
    143143
    144144            // Send activation mail to user email
    145             $ServerURL = 'http://'.$this->System->Config['Web']['Host'].$this->System->Config['Web']['RootFolder'];
     145            $ServerURL = 'http://'.Core::Cast($this->System)->Config['Web']['Host'].Core::Cast($this->System)->Config['Web']['RootFolder'];
    146146            $Mail = new Mail();
    147147            $Mail->Subject = 'Registrace nového účtu';
     
    154154              '<br/><br/>Na tento email neodpovídejte.", 'text/html');
    155155            $Mail->AddTo($Email, $Name);
    156             $Mail->From = $this->System->Config['Web']['Title'].' <noreplay@zdechov.net>';
     156            $Mail->From = Core::Cast($this->System)->Config['Web']['Title'].' <noreplay@zdechov.net>';
    157157            $Mail->Send();
    158158
     
    368368      $NewPassword = substr(sha1(strtoupper($Row['Login'])), 0, 7);
    369369
    370       $ServerURL = 'http://'.$this->System->Config['Web']['Host'].$this->System->Config['Web']['RootFolder'];
     370      $ServerURL = 'http://'.Core::Cast($this->System)->Config['Web']['Host'].Core::Cast($this->System)->Config['Web']['RootFolder'];
    371371      $Mail = new Mail();
    372372      $Mail->Subject = 'Obnova hesla';
    373       $Mail->From = $this->System->Config['Web']['Title'].' <noreplay@zdechov.net>';
     373      $Mail->From = Core::Cast($this->System)->Config['Web']['Title'].' <noreplay@zdechov.net>';
    374374      $Mail->AddTo($Row['Email'], $Row['Name']);
    375375      $Mail->AddBody('Požádali jste o zaslání nového hesla na serveru <a href="'.$ServerURL.'">'.$ServerURL.'"</a>.<br />\n'.
Note: See TracChangeset for help on using the changeset viewer.