X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/e5ed227ef0da561e2bde8646ec816842392377ee..d14d77fe95c3b6224b40df9b101dded0deea913c:/cache.c?ds=inline diff --git a/cache.c b/cache.c index 372e38d..b162952 100644 --- 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; }