function shrinktheweb_deleteErrorImages in ShrinkTheWeb 7
Same name and namespace in other branches
- 8 shrinktheweb.api.inc \shrinktheweb_deleteErrorImages()
- 6 shrinktheweb.api.inc \shrinktheweb_deleteErrorImages()
Delete error images
1 call to shrinktheweb_deleteErrorImages()
File
- ./
shrinktheweb.api.inc, line 77
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);
}
}
}