diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-12-05 14:09:58 -0500 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-12-05 14:11:13 -0500 |
commit | 8337ef549312295bdb3dddb12be284c4fdcc9f6a (patch) | |
tree | 1d31fbd699543ecdcf993e628639178b23d78752 | |
parent | f1b619b584e9f665390e14e46f5e89e3390088df (diff) | |
download | GradeBook-8337ef549312295bdb3dddb12be284c4fdcc9f6a.tar.gz GradeBook-8337ef549312295bdb3dddb12be284c4fdcc9f6a.zip |
proper links to cached photos
-rwxr-xr-x | GradeBook_lib.tcl | 2 | ||||
-rw-r--r-- | gb_config.template | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/GradeBook_lib.tcl b/GradeBook_lib.tcl index 0978fcb..786d32b 100755 --- a/GradeBook_lib.tcl +++ b/GradeBook_lib.tcl @@ -1172,7 +1172,7 @@ proc getPhotoUrl { IdNum } { } if { [file exist "$cached_photo_file"] } { # return link to locally cached file - set url "$cached_photo_file" + set url "$photo_album_cache_url/$photo_file" } else { # return link to the main WM photobase set url "$photo_album_base_url/${photo_file}" diff --git a/gb_config.template b/gb_config.template index 8326969..e46d8a0 100644 --- a/gb_config.template +++ b/gb_config.template @@ -14,7 +14,8 @@ array set GradebookServerConfig [list \ verbosity_level 4 \ log_file "log" \ photo_album_base_url "https://bbphotos.wm.edu/idphotos" \ - photo_album_cache "./photos" \ + photo_album_cache "../../grades_book_photos" \ + photo_album_cache_url "/~evmik/grades_book_photos" \ photo_img_width 90 \ photo_img_height 90 \ ] |