mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Added check for whether cache folder exists. If it does not, it is created and then written to
This commit is contained in:
parent
a0815daf48
commit
bb59c278c3
1 changed files with 5 additions and 0 deletions
|
|
@ -163,6 +163,11 @@
|
|||
|
||||
// Store cache
|
||||
if ($cache) {
|
||||
|
||||
if(!file_exists($cachedir)) {
|
||||
mkdir($cachedir, 0700);
|
||||
}
|
||||
|
||||
if ($fp = fopen($cachedir . '/' . $cachefile, 'wb')) {
|
||||
fwrite($fp, $contents);
|
||||
fclose($fp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue