[Fusionforge-commits] FusionForge branch master updated. bb22a471b18b4f6574b3058cbabffe9e23c7b445

Julien HEYMAN jheyman at fusionforge.org
Fri Apr 4 18:31:44 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, master has been updated
       via  bb22a471b18b4f6574b3058cbabffe9e23c7b445 (commit)
      from  85d842b344d997b7c4fea8518ce872325e9b0abb (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 bb22a471b18b4f6574b3058cbabffe9e23c7b445
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