@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | // TODO: Cleanup (avoid repetition) |
147 | 147 | // Try to create new Instance of Handler and return it |
148 | 148 | try { |
149 | - $oHandler = new $oHandler($locale); |
|
149 | + $oHandler = new $oHandler($locale); |
|
150 | 150 | } |
151 | 151 | catch (TranslationCacheNotFound $exception) { |
152 | 152 | // Log error and fallback procedure |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | private function replaceParameter ($translation, $parameters) { |
232 | 232 | |
233 | 233 | // Go through each specified Parameter and replace its placeholder "{$key}" |
234 | - foreach ($parameters as $key => $parameter) { |
|
234 | + foreach ($parameters as $key => $parameter) { |
|
235 | 235 | // TODO: Make Prefix and Suffix configurable |
236 | 236 | // If the string (e.g "{name}") is not specified within the "parameters" array it won't be replaced! |
237 | 237 | $translation = str_replace("{".$key."}", $parameter, $translation); |