diff options
author | Chad Parry <github@chad.parry.org> | 2011-04-24 08:28:39 -0600 |
---|---|---|
committer | Chad Parry <github@chad.parry.org> | 2011-04-24 08:28:39 -0600 |
commit | 26585fed03236f0f70a75959e1d3002025f4e15e (patch) | |
tree | 33a89567f40dbbdb8affcbe76baa27b242bc6d75 /modules/user/helpers | |
parent | 809567f12850f59bdeb47a2963f6968b99b5a201 (diff) | |
parent | c8f90e861b866d0caa86343a6c7213e923023d39 (diff) |
Merge branch 'master' of https://github.com/gallery/gallery3 into rawphoto
Diffstat (limited to 'modules/user/helpers')
-rw-r--r-- | modules/user/helpers/user_installer.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/user/helpers/user_installer.php b/modules/user/helpers/user_installer.php index b889af49..9b582773 100644 --- a/modules/user/helpers/user_installer.php +++ b/modules/user/helpers/user_installer.php @@ -24,6 +24,7 @@ class user_installer { static function install() { IdentityProvider::change_provider("user"); + // Set the latest version in initialize() below } static function upgrade($version) { @@ -44,6 +45,13 @@ class user_installer { ->execute(); module::set_version("user", $version = 3); } + + if ($version == 3) { + $password_length = module::get_var("user", "mininum_password_length", 5); + module::set_var("user", "minimum_password_length", $password_length); + module::clear_var("user", "mininum_password_length"); + module::set_version("user", $version = 4); + } } static function uninstall() { @@ -129,7 +137,7 @@ class user_installer { access::allow($registered, "view", $root); access::allow($registered, "view_full", $root); - module::set_var("user", "mininum_password_length", 5); - module::set_version("user", 3); + module::set_var("user", "minimum_password_length", 5); + module::set_version("user", 4); } }
\ No newline at end of file |