Changeset 9 for trunk/Modules/User/User.php
- Timestamp:
- Jun 1, 2023, 1:01:38 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/User.php
r8 r9 143 143 144 144 // 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']; 146 146 $Mail = new Mail(); 147 147 $Mail->Subject = 'Registrace nového účtu'; … … 154 154 '<br/><br/>Na tento email neodpovídejte.", 'text/html'); 155 155 $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>'; 157 157 $Mail->Send(); 158 158 … … 368 368 $NewPassword = substr(sha1(strtoupper($Row['Login'])), 0, 7); 369 369 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']; 371 371 $Mail = new Mail(); 372 372 $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>'; 374 374 $Mail->AddTo($Row['Email'], $Row['Name']); 375 375 $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.