X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fdownloads.c;fp=webcit%2Fdownloads.c;h=f7f9c9dc52d390bea015b6fdee455b44ff3267c9;hb=3841dfefb6b086720b6d5d9af39aaf8b19730e6d;hp=60783c5685cad880b94c1f877dc821c473891218;hpb=7cabeea6da9a3197dcb61eca4f7c2886b33d6257;p=citadel.git diff --git a/webcit/downloads.c b/webcit/downloads.c index 60783c568..f7f9c9dc5 100644 --- a/webcit/downloads.c +++ b/webcit/downloads.c @@ -38,22 +38,22 @@ void FreeFiles(void *vFile) /* -------------------------------------------------------------------------------- */ void tmplput_FILE_NAME(StrBuf *Target, WCTemplputParams *TP) { - FileListStruct *F = (FileListStruct*) CTX; + FileListStruct *F = (FileListStruct*) CTX(CTX_FILELIST); StrBufAppendTemplate(Target, TP, F->Filename, 0); } void tmplput_FILE_SIZE(StrBuf *Target, WCTemplputParams *TP) { - FileListStruct *F = (FileListStruct*) CTX; + FileListStruct *F = (FileListStruct*) CTX(CTX_FILELIST); StrBufAppendPrintf(Target, "%ld", F->FileSize); } void tmplput_FILEMIMETYPE(StrBuf *Target, WCTemplputParams *TP) { - FileListStruct *F = (FileListStruct*) CTX; + FileListStruct *F = (FileListStruct*) CTX(CTX_FILELIST); StrBufAppendTemplate(Target, TP, F->MimeType, 0); } void tmplput_FILE_COMMENT(StrBuf *Target, WCTemplputParams *TP) { - FileListStruct *F = (FileListStruct*) CTX; + FileListStruct *F = (FileListStruct*) CTX(CTX_FILELIST); StrBufAppendTemplate(Target, TP, F->Comment, 0); } @@ -61,7 +61,7 @@ void tmplput_FILE_COMMENT(StrBuf *Target, WCTemplputParams *TP) int Conditional_FILE_ISPIC(StrBuf *Target, WCTemplputParams *TP) { - FileListStruct *F = (FileListStruct*) CTX; + FileListStruct *F = (FileListStruct*) CTX(CTX_FILELIST); return F->IsPic; }