mirror of
https://github.com/typemill/typemill.git
synced 2025-07-30 19:00:32 +02:00
version 1.3.3: Pages and Posts
This commit is contained in:
@@ -38,7 +38,7 @@ class TwigLanguageExtension extends \Twig_Extension
|
||||
$string = strtoupper( $string );
|
||||
|
||||
//translates the string
|
||||
$translated_label = $this->labels[$string];
|
||||
$translated_label = isset($this->labels[$string]) ? $this->labels[$string] : null;
|
||||
|
||||
// if the string is not present, set the original string
|
||||
if( empty($translated_label) ){
|
||||
|
Reference in New Issue
Block a user