aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xGradeBook_lib.tcl2
-rw-r--r--gb_config.template3
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 \
]