diff --git a/system/classes/language.class.php b/system/classes/language.class.php index b068572e2..2ac98144a 100644 --- a/system/classes/language.class.php +++ b/system/classes/language.class.php @@ -42,8 +42,8 @@ class Language /** * Apply overrides to the given language arrays * - * @param array $varNames * This method should be called just after you have included a language file + * * @param array $varNames */ public static function override(array $varNames) @@ -166,13 +166,7 @@ public static function adminShowEditor(array $A = array()) } $isNew = ($id === 0); - - if ($isNew) { - $deleteOption = ''; - $allow_delete = false; - } else { - $allow_delete = true; - } + $allow_delete = !$isNew; $token = SEC_createToken(self::SEC_TOKEN_LIFESPAN); $content = COM_startBlock(