You are here

function shrinktheweb_deleteErrorImages in ShrinkTheWeb 6

Same name and namespace in other branches
  1. 8 shrinktheweb.api.inc \shrinktheweb_deleteErrorImages()
  2. 7 shrinktheweb.api.inc \shrinktheweb_deleteErrorImages()

Delete error images

1 call to shrinktheweb_deleteErrorImages()
shrinktheweb_admin_settings_submit in ./shrinktheweb.admin.inc

File

./shrinktheweb.api.inc, line 78

Code

function shrinktheweb_deleteErrorImages() {
  $aFilenames = array(
    'quota' => THUMBNAIL_DIR . QUOTA_IMAGE,
    'bandwidth' => THUMBNAIL_DIR . BANDWIDTH_IMAGE,
    'no_response' => THUMBNAIL_DIR . NO_RESPONSE_IMAGE,
  );
  foreach ($aFilenames as $sFile) {
    if (file_exists($sFile)) {
      @unlink($sFile);
    }
  }
}