Move the default identity config into the users module and change the Identity constructor to look in module::get_var(gallery, identity_provider) for the current identity driver.

In addition, don't just arbitrarily lock the use module.  Only lock gallery and the module that is referenced by "user_driver_module" variable.
This commit is contained in:
Tim Almdal
2009-10-18 08:00:33 -07:00
parent 78ee4193b7
commit 6d5c12e13e
3 changed files with 33 additions and 46 deletions
+2 -1
View File
@@ -90,7 +90,8 @@ class module_Core {
// Lock certain modules
$modules->gallery->locked = true;
$modules->user->locked = true;
$identity_module = self::get_var("gallery", "identity_provider", "user");
$modules->$identity_module->locked = true;
$modules->ksort();
self::$available = $modules;
}