[Owncloud] Subclassing OC_L10N
Thomas Tanghus
thomas at tanghus.net
Mon May 28 19:15:54 UTC 2012
Does anyone object to me committing the patch below?
I'm working on an app that provides a alternative page template system, and
this patch would allow me to create a subclass of OC_L10N instead of rewriting
it.
Alternatively I could make $translations and $localizations protected instead
of private.
diff --git a/lib/l10n.php b/lib/l10n.php
index c0ecdbd..d28caf8 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)){
--
Med venlig hilsen / Best Regards
Thomas Tanghus
More information about the Owncloud
mailing list