Blah. Wrong type for those getConfig values.
authorDan
Wed, 25 Feb 2009 13:39:49 -0500
changeset 836 f8199a8d6153
parent 835 146bc1daf498
child 837 fa3d93969af0
Blah. Wrong type for those getConfig values.
plugins/SpecialUserPrefs.php
--- a/plugins/SpecialUserPrefs.php	Wed Feb 25 13:38:21 2009 -0500
+++ b/plugins/SpecialUserPrefs.php	Wed Feb 25 13:39:49 2009 -0500
@@ -759,7 +759,7 @@
             if ( $action == 'set_http' )
             {
               // Check if this action is enabled
-              if ( getConfig('avatar_upload_http', '1') !== '1' )
+              if ( getConfig('avatar_upload_http', 1) !== 1 )
               {
                 // non-localized, only appears on hack attempt
                 echo '<div class="error-box">Uploads over HTTP are disabled.</div>';
@@ -799,7 +799,7 @@
             else
             {
               // Check if this action is enabled
-              if ( getConfig('avatar_upload_file', '1') !== '1' )
+              if ( getConfig('avatar_upload_file', 1) !== 1 )
               {
                 // non-localized, only appears on hack attempt
                 echo '<div class="error-box">Uploads from the browser are disabled.</div>';