Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.96 KB | None | 0 0
  1. --- /tmp/ciferblat2/bitrix/php_interface/init.php       2014-12-08 12:43:58.000000000 +0300
  2. +++ bitrix/php_interface/init.php       2014-12-19 11:53:32.000000000 +0300
  3. @@ -136,19 +136,19 @@
  4.         return $out;
  5.  }
  6.  
  7. -function CheckIBlockElement(&$arFields) {
  8. +/*function CheckIBlockElement(&$arFields) {
  9.         if ((!is_array($arFields["PREVIEW_PICTURE"])) && $arFields['IBLOCK_ID'] != 50) {
  10.                 $arFields["ACTIVE"] = "N";
  11. -       }
  12. +       }*/
  13.  
  14.         /*$f = fopen($_SERVER["DOCUMENT_ROOT"]."/log.txt", "a");
  15.         fwrite($f, var_export($arFields, true));
  16.         fwrite($f, "\r\n\r\n");
  17.         fclose($f);*/
  18. -}
  19. +/*}
  20.  
  21.  AddEventHandler("iblock", "OnBeforeIBlockElementAdd", "CheckIBlockElement");
  22. -AddEventHandler("iblock", "OnBeforeIBlockElementUpdate", "CheckIBlockElement");
  23. +AddEventHandler("iblock", "OnBeforeIBlockElementUpdate", "CheckIBlockElement");*/
  24.  
  25.  function GetCatalogPath($element_id) {
  26.         CModule::IncludeModule('iblock');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement