File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/wiki/classes/general/ratings_components.php
Back
<?php IncludeModuleLangFile(__FILE__); class CRatingsComponentsWiki { public static function OnAddRatingVote($id, $arParams) { if ($arParams['ENTITY_TYPE_ID'] == 'IBLOCK_ELEMENT') { global $CACHE_MANAGER; $CACHE_MANAGER->ClearByTag('wiki_'.intval($arParams['ENTITY_ID'])); return true; } return false; } public static function OnCancelRatingVote($id, $arParams) { return CRatingsComponentsWiki::OnAddRatingVote($id, $arParams); } public static function BeforeIndex($arParams) { if ( $arParams['PARAM1'] == 'wiki' && intval($arParams['PARAM2']) > 0 && intval($arParams['ITEM_ID']) > 0 ) { $arParams['ENTITY_TYPE_ID'] = 'IBLOCK_ELEMENT'; $arParams['ENTITY_ID'] = intval($arParams['ITEM_ID']); return $arParams; } } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings