diff options
| author | Lars Hjemli <hjemli@gmail.com> | 2008-02-16 11:53:40 +0100 | 
|---|---|---|
| committer | Lars Hjemli <hjemli@gmail.com> | 2008-02-16 12:07:28 +0100 | 
| commit | d14d77fe95c3b6224b40df9b101dded0deea913c (patch) | |
| tree | 7e0d9c8f2c0f86b8946aea0bb823085c33b164b3 /cache.c | |
| parent | e5ed227ef0da561e2bde8646ec816842392377ee (diff) | |
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>
Diffstat (limited to 'cache.c')
| -rw-r--r-- | cache.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| @@ -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;  	} | 
