* Fixed bug with pageNotFound handling.
authorKasper Skårhøj <kasper@typo3.org>
Mon, 26 Apr 2004 14:33:26 +0000 (14:33 +0000)
committerKasper Skårhøj <kasper@typo3.org>
Mon, 26 Apr 2004 14:33:26 +0000 (14:33 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@235 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_fe.php

index ffe424e..c5014f1 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 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.
 
 2004-04-26  Kasper Skårhøj,,,  <kasper@typo3.com>
index 52021f6..057145c 100755 (executable)
                        }
                                // 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??