From: Thomas Tanghus Date: Thu, 7 Jun 2012 15:25:25 +0000 (+0200) Subject: Make it easier to subclass OC_L10N. X-Git-Tag: v4.5.0beta1~74^2~423^2~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c696f449a223442e8a11b30a6d4004585ceca478;p=nextcloud-server.git Make it easier to subclass OC_L10N. --- 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);