From c696f449a223442e8a11b30a6d4004585ceca478 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Thu, 7 Jun 2012 17:25:25 +0200 Subject: [PATCH] Make it easier to subclass OC_L10N. --- lib/l10n.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/l10n.php b/lib/l10n.php index 682e15f0e9..3596c992ba 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);