diff options
author | Clark Tomlinson <fallen013@gmail.com> | 2014-10-22 10:38:17 -0400 |
---|---|---|
committer | Clark Tomlinson <fallen013@gmail.com> | 2014-10-23 10:32:47 -0400 |
commit | ca5abe57440e415b1a6b99d7461dacab21b67b71 (patch) | |
tree | 5e0c92496a0cdffb09caef6dc0ffbf550135a700 /lib/private | |
parent | b7fa644a546a775c5b4b7c4e35da39df11be1c66 (diff) | |
download | nextcloud-server-ca5abe57440e415b1a6b99d7461dacab21b67b71.tar.gz nextcloud-server-ca5abe57440e415b1a6b99d7461dacab21b67b71.zip |
Setting moment locale based on user selection
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/templatelayout.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/templatelayout.php b/lib/private/templatelayout.php index f5f079c8b2a..b294cef55e7 100644 --- a/lib/private/templatelayout.php +++ b/lib/private/templatelayout.php @@ -33,7 +33,6 @@ class OC_TemplateLayout extends OC_Template { $this->config = \OC::$server->getConfig(); // Decide which page we show - if( $renderAs == 'user' ) { parent::__construct( 'core', 'layout.user' ); if(in_array(OC_APP::getCurrentApp(), array('settings','admin', 'help'))!==false) { @@ -84,7 +83,11 @@ class OC_TemplateLayout extends OC_Template { $this->assign('bodyid', 'body-login'); } else { parent::__construct('core', 'layout.base'); + } + // Send the language to our layouts + $this->assign('language', OC_L10N::findLanguage()); + if(empty(self::$versionHash)) { self::$versionHash = md5(implode(',', OC_App::getAppVersions())); |