Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-06-07 19:25:25 +0400
committerThomas Tanghus <thomas@tanghus.net>2012-06-07 19:26:28 +0400
commitc696f449a223442e8a11b30a6d4004585ceca478 (patch)
treee12a5bef3bb50f7baed9845cfc97c03d75c7fdd7 /lib/l10n.php
parent14e1be56a0927db5344af062a06839f08f674805 (diff)
Make it easier to subclass OC_L10N.
Diffstat (limited to 'lib/l10n.php')
-rw-r--r--lib/l10n.php4
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);