Commit 920999ac authored by Kasper Skårhøj's avatar Kasper Skårhøj
Browse files

* Fixed bug with pageNotFound handling.


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@235 709f56b5-9817-0410-a4d7-c38de5d9e867
parent 0462cfdd
2004-04-26 Kasper Skårhøj,,, <kasper@typo3.com>
* Fixed bug with pageNotFound handling.
2004-04-26 Kasper Skårhøj,,, <kasper@typo3.com>
* Added a PAGE Tsconfig option to disable the automatic clearing of page cache when records are edited.
......
......@@ -760,8 +760,12 @@
}
// If still no page...
if (!count($this->page)) {
$this->printError('The requested page does not exist!');
exit;
if ($this->TYPO3_CONF_VARS['FE']['pageNotFound_handling']) {
$this->pageNotFoundHandler($this->TYPO3_CONF_VARS['FE']['pageNotFound_handling'],$this->TYPO3_CONF_VARS['FE']['pageNotFound_handling_statheader']);
} else {
$this->printError('The requested page does not exist!');
exit;
}
}
}
// Is the ID a link to another page??
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment