Skip to content

Commit

Permalink
Load CSS from filesystem if curl doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
cathyjf committed Apr 15, 2013
1 parent e911c95 commit d5056c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions customcss.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,7 @@
readfile($cssfile);
}
touch($cssfile, $timenow); // Don't check again for an hour.
} else if (file_exists($cssfile)) {
readfile($cssfile);
}
curl_close($curl);

0 comments on commit d5056c4

Please sign in to comment.