Project

General

Profile

Bug #3884 » noemptyvars.patch

Bas Wijnen, 09/09/2011 21:02

View differences:

main/inc/lib/internationalization.lib.php Fri Sep 09 19:34:15 2011 +0200 → main/inc/lib/internationalization.lib.php Fri Sep 09 21:04:17 2011 +0200
207 207
        }
208 208
        if (empty($langvar) || !is_string($langvar)) {
209 209
            $_api_is_translated = false;
210
	    $langvar = $show_special_markup ? SPECIAL_OPENING_TAG.$variable.SPECIAL_CLOSING_TAG : $variable;
210 211
        }
211 212
        return $cache[$language][$variable] = $is_utf8_encoding ? $langvar : api_utf8_decode($langvar, $encoding);
212 213
    }
......
226 227
    }
227 228
    if (empty($langvar) || !is_string($langvar)) {
228 229
        $_api_is_translated = false;
230
        $langvar = $show_special_markup ? SPECIAL_OPENING_TAG.$variable.SPECIAL_CLOSING_TAG : $variable;
229 231
    }
230 232
    return $cache[$language][$variable] = $is_utf8_encoding ? $langvar : api_utf8_decode($langvar, $encoding);
231 233
}
    (1-1/1)