From: Jens T. <je...@us...> - 2005-07-23 13:59:56
|
Update of /cvsroot/gallery/gallery/platform In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32403/platform Modified Files: fs_unix.php fs_win32.php Log Message: 2005-07-23 Jens Tkotz <je...@pe...> 1.5.1-cvs-b65 * Fix: CSS is now loaded correct when embedded. Now base and embedded.css are loaded when embedded. * Fix: Typo in ecard_form.php * Fix: Colorpicker in albumproperties didnt work when embedded and configured. Index: fs_win32.php =================================================================== RCS file: /cvsroot/gallery/gallery/platform/fs_win32.php,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- fs_win32.php 14 Apr 2005 01:43:49 -0000 1.30 +++ fs_win32.php 23 Jul 2005 13:59:47 -0000 1.31 @@ -83,8 +83,14 @@ function fs_opendir($path) { - $path = fs_import_filename($path, 0); - return opendir($path); + $path = fs_import_filename($path, 0); + + if (@opendir($path)) { + return opendir($path); + } + else { + echo gallery_error(sprintf(_("Gallery was not able to open dir: %s. <br>Please check permissions and existence"), $path)); + } } function fs_rename($oldname, $newname) { Index: fs_unix.php =================================================================== RCS file: /cvsroot/gallery/gallery/platform/fs_unix.php,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- fs_unix.php 5 Jul 2005 01:02:26 -0000 1.26 +++ fs_unix.php 23 Jul 2005 13:59:47 -0000 1.27 @@ -85,7 +85,12 @@ } function fs_opendir($path) { + if (@opendir($path)) { return opendir($path); + } + else { + echo gallery_error(sprintf(_("Gallery was not able to open dir: %s. <br>Please check permissions and existence"), $path)); + } } function fs_rename($oldname, $newname) { |