]> git.cameronkatri.com Git - cgit.git/blobdiff - cache.c
Introduce struct cgit_context
[cgit.git] / cache.c
diff --git a/cache.c b/cache.c
index 372e38d628cbfaae48beea6538c38dd0638f4b4b..b1629523e6594b115053b7d2f74b20f78f4e3ca2 100644 (file)
--- a/cache.c
+++ b/cache.c
@@ -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;
        }