diff options
author | Lars Hjemli <hjemli@gmail.com> | 2008-02-16 13:56:09 +0100 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-02-16 13:56:09 +0100 |
commit | d1f3bbe9d22029f45a77bb938c176ccc0c827d46 (patch) | |
tree | 3f1741c012763cbc5485f31377abdd9241fbac6b /ui-summary.c | |
parent | Add all config variables into struct cgit_context (diff) | |
download | cgit-pink-d1f3bbe9d22029f45a77bb938c176ccc0c827d46.tar.gz cgit-pink-d1f3bbe9d22029f45a77bb938c176ccc0c827d46.zip |
Move cgit_repo into cgit_context
This removes the global variable which is used to keep track of the currently selected repository, and adds a new variable in the cgit_context structure. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | ui-summary.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-summary.c b/ui-summary.c index 0a44994..3baac08 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -182,9 +182,9 @@ void cgit_print_tags(int maxcount) void cgit_print_summary() { - if (cgit_repo->readme) { + if (ctx.repo->readme) { html("<div id='summary'>"); - html_include(cgit_repo->readme); + html_include(ctx.repo->readme); html("</div>"); } if (ctx.cfg.summary_log > 0) |