Код |
---|
if(!$componentPage) { $componentPage = "sections"; 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"); } } |
Код |
---|
if(!$componentPage) { $componentPage = "sections"; 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)){ @define("ERROR_404", "Y"); CHTTP::SetStatus("404 Not Found");} } } |