# HG changeset patch # User Dan # Date 1242086005 14400 # Node ID 2db0975aa31a798254b8ec17a669bd5af4117d8b # Parent 72b37471cce062b2f4a51c574329196a368402e9 Fixed a couple bugs with admin avatar settings and getConfig() return types diff -r 72b37471cce0 -r 2db0975aa31a plugins/SpecialAdmin.php --- a/plugins/SpecialAdmin.php Mon May 11 19:51:36 2009 -0400 +++ b/plugins/SpecialAdmin.php Mon May 11 19:53:25 2009 -0400 @@ -808,27 +808,27 @@


-
+
get('acpgc_field_avatar_gravatar_rating'); ?> diff -r 72b37471cce0 -r 2db0975aa31a plugins/admin/UserManager.php --- a/plugins/admin/UserManager.php Mon May 11 19:51:36 2009 -0400 +++ b/plugins/admin/UserManager.php Mon May 11 19:53:25 2009 -0400 @@ -199,7 +199,7 @@ if ( $action == 'set_http' ) { // Check if this action is enabled - if ( getConfig('avatar_upload_http') !== '1' ) + if ( getConfig('avatar_upload_http', 1) !== 1 ) { // non-localized, only appears on hack attempt $errors[] = 'Uploads over HTTP are disabled.'; @@ -239,7 +239,7 @@ else { // Check if this action is enabled - if ( getConfig('avatar_upload_file') !== '1' ) + if ( getConfig('avatar_upload_file', 1) !== 1 ) { // non-localized, only appears on hack attempt $errors[] = 'Uploads from the browser are disabled.';