@@ -63,11 +63,11 @@ |
||
| 63 | 63 | if(isset($this->translations[$target][$this->multilingual_parameters['language']])){ |
| 64 | 64 | $target = $this->translations[$target][$this->multilingual_parameters['language']]; |
| 65 | 65 | return $target; |
| 66 | - } |
|
| 67 | - elseif (isset($this->translations[$target])) { |
|
| 66 | + } elseif (isset($this->translations[$target])) { |
|
| 68 | 67 | return $target; |
| 68 | + } else { |
|
| 69 | + throw new Exception ("The text '$target'' is not defined in '$translations' translation file."); |
|
| 69 | 70 | } |
| 70 | - else throw new Exception ("The text '$target'' is not defined in '$translations' translation file."); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |