[Fusionforge-commits] FusionForge branch Branch_5_3 updated. c0cdf2bf374a4317a5855432aad9ecf1bd4d6acd

Julien HEYMAN jheyman at fusionforge.org
Fri Apr 4 22:10:02 CEST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, Branch_5_3 has been updated
       via  c0cdf2bf374a4317a5855432aad9ecf1bd4d6acd (commit)
      from  b086128b251629c287d01e89126b234baa8d084d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c0cdf2bf374a4317a5855432aad9ecf1bd4d6acd
Author: Julien HEYMAN <julien.heyman at atos.net>
Date:   Fri Apr 4 18:28:12 2014 +0200

    Fix theme id when create user in authldap plugin because now gforge theme with id = 1 don't exist;

diff --git a/src/plugins/authldap/include/AuthLDAPPlugin.class.php b/src/plugins/authldap/include/AuthLDAPPlugin.class.php
index d1e92ea..8013e68 100644
--- a/src/plugins/authldap/include/AuthLDAPPlugin.class.php
+++ b/src/plugins/authldap/include/AuthLDAPPlugin.class.php
@@ -52,6 +52,7 @@ class AuthLDAPPlugin extends ForgeAuthPlugin {
 	}
 
 	function syncAccountInfo($params) {
+		global $HTML;
 		if (!$this->syncDataOn($params['event'])) {
 			return true;
 		}
@@ -92,7 +93,7 @@ class AuthLDAPPlugin extends ForgeAuthPlugin {
 			$user_data['timezone'] = 'GMT';
 			$user_data['jabber_address'] = '';
 			$user_data['jabber_only'] = 0;
-			$user_data['theme_id'] = 1;
+			$user_data['theme_id'] = $HTML->getThemeIdFromName(forge_get_config('default_theme'));
 			$user_data['unix_box'] = '';
 			$user_data['address'] = '';
 			$user_data['address2'] = '';

-----------------------------------------------------------------------

Summary of changes:
 src/plugins/authldap/include/AuthLDAPPlugin.class.php |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list