15114.diff

Administrator Admin, 2010-07-15 15:57

Download (957 Bytes)

View differences:

typo3/sysext/cms/tslib/class.tslib_fe.php (working copy)
973 973
		$GLOBALS['TT']->pull();
974 974

  
975 975
		if ($this->pageNotFound && $this->TYPO3_CONF_VARS['FE']['pageNotFound_handling'])	{
976
			$header = t3lib_utility_Http::HTTP_STATUS_404;
976 977
			$pNotFoundMsg = array(
977 978
				1 => 'ID was not an accessible page',
978 979
				2 => 'Subsection was found and not accessible',
979 980
				3 => 'ID was outside the domain',
980 981
				4 => 'The requested page alias does not exist'
981 982
			);
982
			$this->pageNotFoundAndExit($pNotFoundMsg[$this->pageNotFound]);
983

  
984
			if ($this->pageNotFound === 1 || $this->pageNotFound === 2) {
985
				$header = t3lib_utility_Http::HTTP_STATUS_401;
986
			}
987

  
988
			$this->pageNotFoundAndExit($pNotFoundMsg[$this->pageNotFound], $header);
983 989
		}
984 990

  
985 991
			// set no_cache if set