Permalink
Browse files

Renamed generate file and added exports

  • Loading branch information...
1 parent 4b763f2 commit d05837b76426f0c0bc7cbaa7d5ffcd954b4578c7 Ovidiu Chereches committed Feb 27, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 generate.php
View
@@ -60,11 +60,9 @@
// Save
-$path = 'exports/' . time() . '.jpg';
-
-if(!imagejpeg($img, $path, 100))
+if(is_dir('exports') || mkdir('exports'))
{
- exit;
+ imagejpeg($img, 'exports/' . time() . '.jpg', 100);
}
// Header

0 comments on commit d05837b

Please sign in to comment.