cvs: php-gtk-doc /scripts copy_images.php
[email protected] ("Anant Narayanan") Fri, 08 Dec 2006 15:21:39 -0000
| Newsgroups | php.gtk.doc |
|---|---|
| Message-ID | <cvsanant1165591299@cvsserver> |
anant Fri Dec 8 15:21:39 2006 UTC
Modified files:
/php-gtk-doc/scripts copy_images.php
Log:
Make directory only if it doesn't exist, patch thanks to Mike
http://cvs.php.net/viewvc.cgi/php-gtk-doc/scripts/copy_images.php?r1=1.1&r2=1.2&diff_format=u
Index: php-gtk-doc/scripts/copy_images.php
diff -u php-gtk-doc/scripts/copy_images.php:1.1 php-gtk-doc/scripts/copy_images.php:1.2
--- php-gtk-doc/scripts/copy_images.php:1.1 Sun Mar 26 02:44:13 2006
+++ php-gtk-doc/scripts/copy_images.php Fri Dec 8 15:21:39 2006
@@ -19,7 +19,8 @@
if ($file != "." && $file != ".." && $file != "CVS") {
$fulldest = $dest.substr(getcwd(), strpos(getcwd(), 'images')-1)."/$file";
if (is_dir($file)) {
- mkdir($fulldest, 0777);
+ if (is_dir($file))
+ mkdir($fulldest, 0777);
copy_images(realpath($file), $dest, $count);
} else {
copy($file, $fulldest);