From: Eloi G. <ada...@us...> - 2004-10-04 12:39:40
|
Update of /cvsroot/phpwsbb/phpwsbb/imglib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11975/imglib Modified Files: ImgLibrary.php Log Message: Fixed Bug Report [1038319] "1.0.0 CVS: Nasty error creating avatar gallery" Submitted this as patch to the core file as well. Index: ImgLibrary.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/imglib/ImgLibrary.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ImgLibrary.php 10 Sep 2004 02:00:45 -0000 1.2 --- ImgLibrary.php 4 Oct 2004 12:39:29 -0000 1.3 *************** *** 392,395 **** --- 392,396 ---- $row['WIDTH'] = $maxw + 20; $tags['IMAGE_SELECT_LST'] = ''; + $bg = ''; foreach($filelist as $fname=>$finfo) { $row['BG'] = $bg; *************** *** 729,736 **** foreach(explode('/',$the_path) AS $k) { $a.=$k.'/'; ! if(!is_dir($a)) { ! mkdir($a); ! chmod($a, 0755); ! } } } --- 730,735 ---- foreach(explode('/',$the_path) AS $k) { $a.=$k.'/'; ! if(!is_dir($a) && !PHPWS_File::makeDir($a)) ! exit('ERROR (PHPWS_IMGLib): Couldn\'t create directory "'.$a.'"<br />Make sure that the proper permissions are set in the parent directories.'); } } |