From 8db2406c0091212899f388f5cd17947434a3c734 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sat, 31 Oct 2009 14:11:06 -0700 Subject: Added a config parameter to the IdentityProvider to specifiy the configuration. This allows the ldap installer to instantiate the ldap Identity provider to use in the install and uninstall methods --- modules/gallery/libraries/IdentityProvider.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/gallery/libraries/IdentityProvider.php b/modules/gallery/libraries/IdentityProvider.php index aa519bd3..e213ae97 100644 --- a/modules/gallery/libraries/IdentityProvider.php +++ b/modules/gallery/libraries/IdentityProvider.php @@ -62,8 +62,10 @@ class IdentityProvider_Core { * * @return void */ - public function __construct() { - $config = module::get_var("gallery", "identity_provider", "user"); + public function __construct($config=null) { + if (empty($config)) { + $config = module::get_var("gallery", "identity_provider", "user"); + } // Test the config group name if (($this->config = Kohana::config("identity." . $config)) === NULL) { -- cgit v1.2.3