Introduce struct cgit_context

This struct will hold all the cgit runtime information currently found in
a multitude of global variables.

The first cleanup removes all querystring-related variables.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
这个提交包含在:
Lars Hjemli
2008-02-16 11:53:40 +01:00
父节点 e5ed227ef0
当前提交 d14d77fe95
共有 13 个文件被更改,包括 156 次插入164 次删除

查看文件

@ -57,10 +57,10 @@ int cache_create_dirs()
if (mkdir(path, S_IRWXU) && errno!=EEXIST)
return 0;
if (cgit_query_page) {
if (ctx.qry.page) {
path = fmt("%s/%s/%s", cgit_cache_root,
cache_safe_filename(cgit_repo->url),
cgit_query_page);
ctx.qry.page);
if (mkdir(path, S_IRWXU) && errno!=EEXIST)
return 0;
}