mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-25 02:02:57 +01:00
Use underscores in frontmatter keys for consistency
This commit is contained in:
parent
5779534b5f
commit
b6bd7fbe3f
@ -208,7 +208,7 @@ class Formwork
|
||||
$content = $page->render();
|
||||
|
||||
if ($this->option('cache.enabled') && $page->cacheable()) {
|
||||
$output = new Output($content, $page->get('response-status'), $page->headers());
|
||||
$output = new Output($content, $page->get('response_status'), $page->headers());
|
||||
$this->cache->save($this->cacheKey, $output);
|
||||
}
|
||||
}
|
||||
|
@ -564,8 +564,8 @@ class Page extends AbstractPage
|
||||
}
|
||||
|
||||
// Set default 404 Not Found status to error page
|
||||
if ($this->isErrorPage() && !$this->has('response-status')) {
|
||||
$this->set('response-status', 404);
|
||||
if ($this->isErrorPage() && !$this->has('response_status')) {
|
||||
$this->set('response_status', 404);
|
||||
}
|
||||
}
|
||||
|
||||
@ -574,8 +574,8 @@ class Page extends AbstractPage
|
||||
*/
|
||||
protected function sendHeaders()
|
||||
{
|
||||
if ($this->has('response-status')) {
|
||||
Header::status($this->get('response-status'));
|
||||
if ($this->has('response_status')) {
|
||||
Header::status($this->get('response_status'));
|
||||
}
|
||||
if (!empty($this->headers())) {
|
||||
foreach ($this->headers() as $name => $value) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user