plugins/SpecialUserPrefs.php
changeset 1095 5f623b0de18e
parent 1086 6a59951b70e4
child 1169 d5474f54a525
equal deleted inserted replaced
1094:121cf3bbd16e 1095:5f623b0de18e
  1064         @unlink($tempfile);
  1064         @unlink($tempfile);
  1065         echo '<div class="error-box">' . $lang->get('usercp_avatar_corrupt_image') . '</div>';
  1065         echo '<div class="error-box">' . $lang->get('usercp_avatar_corrupt_image') . '</div>';
  1066         break;
  1066         break;
  1067       }
  1067       }
  1068       // Is the image animated?
  1068       // Is the image animated?
  1069       if ( $is_animated && getConfig('avatar_enable_anim') !== '1' )
  1069       if ( $is_animated && getConfig('avatar_enable_anim', 0) !== 1 )
  1070       {
  1070       {
  1071         @unlink($tempfile);
  1071         @unlink($tempfile);
  1072         echo '<div class="error-box">' . $lang->get('usercp_avatar_disallowed_animation') . '</div>';
  1072         echo '<div class="error-box">' . $lang->get('usercp_avatar_disallowed_animation') . '</div>';
  1073         break;
  1073         break;
  1074       }
  1074       }