diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-06-07 17:25:25 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-06-07 17:26:28 +0200 |
commit | c696f449a223442e8a11b30a6d4004585ceca478 (patch) | |
tree | e12a5bef3bb50f7baed9845cfc97c03d75c7fdd7 /lib/l10n.php | |
parent | 14e1be56a0927db5344af062a06839f08f674805 (diff) | |
download | nextcloud-server-c696f449a223442e8a11b30a6d4004585ceca478.tar.gz nextcloud-server-c696f449a223442e8a11b30a6d4004585ceca478.zip |
Make it easier to subclass OC_L10N.
Diffstat (limited to 'lib/l10n.php')
-rw-r--r-- | lib/l10n.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/l10n.php b/lib/l10n.php index 682e15f0e9b..3596c992bae 100644 --- a/lib/l10n.php +++ b/lib/l10n.php @@ -77,6 +77,10 @@ class OC_L10N{ * language. */ public function __construct($app, $lang = null){ + $this->init($app, $lang); + } + + protected function init($app, $lang = null){ // Find the right language if(is_null($lang)){ $lang = self::findLanguage($app); |