Index: openacs-4/packages/photo-album/www/album.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/photo-album/www/album.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/photo-album/www/album.tcl 12 Jun 2003 06:55:45 -0000 1.2 +++ openacs-4/packages/photo-album/www/album.tcl 18 Nov 2003 18:27:52 -0000 1.3 @@ -14,12 +14,13 @@ } -validate { valid_album -requires {album_id:integer} { if [string equal [pa_is_album_p $album_id] "f"] { - ad_complain "The specified album is not valid." + ad_complain "[_ photo-album._The_1]" } } } -properties { album_id:onevalue title:onevalue + photographer:onevalue description:onevalue story:onevalue context:onevalue @@ -38,6 +39,14 @@ # check for read permission on album ad_require_permission $album_id read +# These lines are to uncache the image in Netscape, Mozilla. +# IE6 & Safari (mac) have a bug with the images cache +ns_set put [ns_conn outputheaders] "Expires" "-" +ns_set put [ns_conn outputheaders] "Last-Modified" "-" +ns_set put [ns_conn outputheaders] "Pragma" "no-cache" +ns_set put [ns_conn outputheaders] "Cache-Control" "no-cache" + + set context [pa_context_bar_list $album_id] db_1row get_album_info {}