mirror of
https://github.com/getgrav/grav.git
synced 2026-03-06 04:21:34 +01:00
set status code base on page header
This commit is contained in:
@@ -282,6 +282,11 @@ class Grav extends Container
|
||||
$this['debugger']->enabled(false);
|
||||
// $this['debugger']->sendDataInHeaders();
|
||||
}
|
||||
|
||||
// Set status code
|
||||
if (isset($this['page']->header()->status)) {
|
||||
header($this['page']->header()->status);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user