Add language parameter to public API for getL10N()

Fix #9756
This commit is contained in:
Joas Schilling 2014-07-21 14:50:34 +02:00
parent 61598e7bb5
commit 01878153e0

View file

@ -128,10 +128,11 @@ class Util {
/**
* get l10n object
* @param string $application
* @param string|null $language
* @return \OC_L10N
*/
public static function getL10N( $application ) {
return \OC_L10N::get( $application );
public static function getL10N($application, $language = null) {
return \OC_L10N::get($application, $language);
}
/**