From: Bharat M. <bh...@us...> - 2003-04-22 11:43:04
|
Update of /cvsroot/gallery/gallery2/modules/core/classes In directory sc8-pr-cvs1:/tmp/cvs-serv14490a/classes Modified Files: GalleryToolkitHelper.class Log Message: Changed the operation parameter CRC code to only care about the parameter type, count and order. Ie, ignore descriptions and defaults. Index: GalleryToolkitHelper.class =================================================================== RCS file: /cvsroot/gallery/gallery2/modules/core/classes/GalleryToolkitHelper.class,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- GalleryToolkitHelper.class 20 Mar 2003 17:43:15 -0000 1.3 +++ GalleryToolkitHelper.class 22 Apr 2003 11:43:00 -0000 1.4 @@ -66,7 +66,14 @@ * the operation we're registering matches one that we already have in * the database. */ - $crc = sprintf("%u", crc32(serialize($parameterTypesArray))); + $signature = ''; + foreach ($parameterTypesArray as $parameterType) { + if (!empty($signature)) { + $signature .= ','; + } + $signature .= $parameterType['type']; + } + $crc = sprintf("%u", crc32($signature)); $query = ' SELECT |