Код |
---|
if(!$componentPage) { $componentPage = "news"; if($arParams["SET_STATUS_404"]==="Y") { $folder404 = str_replace("\\", "/", $arParams["SEF_FOLDER"]); if ($folder404 != "/") $folder404 = "/".trim($folder404, "/ \t\n\r\0\x0B")."/"; if (substr($folder404, -1) == "/") $folder404 .= "index.php"; if($folder404 != $APPLICATION->GetCurPage(true)) CHTTP::SetStatus("404 Not Found"); } } |
Код |
---|
CHTTP::SetStatus("404 Not Found"); |
Код |
---|
SET_STATUS_404 |