function shrinktheweb_createCacheDirectory in ShrinkTheWeb 6
Same name and namespace in other branches
- 8 shrinktheweb.api.inc \shrinktheweb_createCacheDirectory()
- 7 shrinktheweb.api.inc \shrinktheweb_createCacheDirectory()
Create cache directory if it doesnt exist
2 calls to shrinktheweb_createCacheDirectory()
- shrinktheweb_getNoResponseImage in ./
shrinktheweb.api.inc - Gets the account problem image and returns the relative path to the cached image
- shrinktheweb_getThumbnail in ./
shrinktheweb.api.inc - Gets the thumbnail for the specified website, stores it in the cache, and then returns the relative path to the cached image.
File
- ./
shrinktheweb.api.inc, line 452
Code
function shrinktheweb_createCacheDirectory() {
// Create cache directory if it doesnt exist
if (!file_exists(THUMBNAIL_DIR)) {
@mkdir(THUMBNAIL_DIR, 0777, true);
}
else {
// Try to make the directory writable
@chmod(THUMBNAIL_DIR, 0777);
}
}