summaryrefslogtreecommitdiffstats
path: root/lib/public/util.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-07-21 14:50:34 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-07-21 14:50:34 +0200
commit01878153e0f9975b81cf714ca67c6b11aaaef1da (patch)
tree9b2de96d0682a643dc9cfcc23c4750cd9626957e /lib/public/util.php
parent61598e7bb51de58bf48fa4e1b358440ac8cf1774 (diff)
downloadnextcloud-server-01878153e0f9975b81cf714ca67c6b11aaaef1da.tar.gz
nextcloud-server-01878153e0f9975b81cf714ca67c6b11aaaef1da.zip
Add language parameter to public API for getL10N()
Fix #9756
Diffstat (limited to 'lib/public/util.php')
-rw-r--r--lib/public/util.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/public/util.php b/lib/public/util.php
index 8f4691eeade..ff8c743c0df 100644
--- a/lib/public/util.php
+++ b/lib/public/util.php
@@ -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);
}
/**