mirror of
https://git.zx2c4.com/cgit
synced 2025-08-01 08:34:36 +02:00
commit: move layout into page function
This allows us to return a proper HTTP status code when an object is not found by switching from cgit_print_error() to cgit_print_error_page(). Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:
parent
51d9176e4b
commit
c53a15c77a
2 changed files with 7 additions and 3 deletions
2
cmd.c
2
cmd.c
|
@ -157,7 +157,7 @@ struct cgit_cmd *cgit_get_cmd(void)
|
|||
def_cmd(atom, 1, 0, 0, 0),
|
||||
def_cmp(about, 0, 0, 0, 0),
|
||||
def_cmd(blob, 1, 0, 0, 0),
|
||||
def_cmd(commit, 1, 1, 1, 0),
|
||||
def_cmd(commit, 1, 0, 1, 0),
|
||||
def_cmd(diff, 1, 1, 1, 0),
|
||||
def_cmd(info, 1, 0, 0, 1),
|
||||
def_cmd(log, 1, 1, 1, 0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue