Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace VojtaSvoboda\Reservations\Mailers; |
||
18 | public function getTemplateIdent($name) |
||
19 | { |
||
20 | $locale = App::getLocale(); |
||
21 | $identBase = 'vojtasvoboda.reservations::mail.' . $name . '-'; |
||
22 | $ident = $identBase . $locale; |
||
23 | |||
24 | if (file_exists(__DIR__ . '/../views/mail/' . $ident . '.htm')) { |
||
25 | return $ident; |
||
26 | } |
||
27 | |||
28 | return $identBase . self::DEFAULT_TEMPLATE_LOCALE; |
||
29 | } |
||
30 | |||
45 |