aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-07-21 16:50:48 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-07-21 16:50:48 +0200
commit677c0288fbc99f4fd9994d70b708ef7a567d257e (patch)
tree4ce210748d6dab573412278f820b7149256d47e8
parent764e695cb65e4b11edfc1357c2b8adf95dc069c0 (diff)
parent01878153e0f9975b81cf714ca67c6b11aaaef1da (diff)
downloadnextcloud-server-677c0288fbc99f4fd9994d70b708ef7a567d257e.tar.gz
nextcloud-server-677c0288fbc99f4fd9994d70b708ef7a567d257e.zip
Merge pull request #9757 from owncloud/issue/9756
Add language parameter to public API for getL10N()
-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);
}
/**