Make it easier to subclass OC_L10N.

This commit is contained in:
Thomas Tanghus 2012-06-07 17:25:25 +02:00
parent 14e1be56a0
commit c696f449a2
1 changed files with 4 additions and 0 deletions

View 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);