set status code base on page header

This commit is contained in:
Andy Miller
2014-11-30 17:50:41 -07:00
parent a66ce64171
commit bb0635c36f

View File

@@ -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);
}
}
/**