Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- /tmp/ciferblat2/bitrix/php_interface/init.php 2014-12-08 12:43:58.000000000 +0300
- +++ bitrix/php_interface/init.php 2014-12-19 11:53:32.000000000 +0300
- @@ -136,19 +136,19 @@
- return $out;
- }
- -function CheckIBlockElement(&$arFields) {
- +/*function CheckIBlockElement(&$arFields) {
- if ((!is_array($arFields["PREVIEW_PICTURE"])) && $arFields['IBLOCK_ID'] != 50) {
- $arFields["ACTIVE"] = "N";
- - }
- + }*/
- /*$f = fopen($_SERVER["DOCUMENT_ROOT"]."/log.txt", "a");
- fwrite($f, var_export($arFields, true));
- fwrite($f, "\r\n\r\n");
- fclose($f);*/
- -}
- +/*}
- AddEventHandler("iblock", "OnBeforeIBlockElementAdd", "CheckIBlockElement");
- -AddEventHandler("iblock", "OnBeforeIBlockElementUpdate", "CheckIBlockElement");
- +AddEventHandler("iblock", "OnBeforeIBlockElementUpdate", "CheckIBlockElement");*/
- function GetCatalogPath($element_id) {
- CModule::IncludeModule('iblock');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement