]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make it easier to subclass OC_L10N.
authorThomas Tanghus <thomas@tanghus.net>
Thu, 7 Jun 2012 15:25:25 +0000 (17:25 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Thu, 7 Jun 2012 15:26:28 +0000 (17:26 +0200)
lib/l10n.php

index 682e15f0e9b44ebae4735988eff9494d24b6a8fc..3596c992baede8d07ff3d368f61f05d4f738861b 100644 (file)
@@ -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);