• Модуль: conversion
  • Путь к файлу: ~/bitrix/modules/conversion/lib/internals/handlers.php
  • Класс: BitrixConversionInternalsHandlers
  • Вызов: Handlers::onProlog
static function onProlog()
{
	static $done = false;
	if (! $done)
	{
		$done = true;

		CJSCore::init();
		DayContext::getInstance();

		// For composite site this script must not be changing often!!!
		Asset::getInstance()->addString(
			'',
			false,
			AssetLocation::AFTER_JS_KERNEL
			// Do not use AssetMode unless you absolutely sure what you're doing!
			// Maybe default value or AssetMode::ALL is appropriate, all other modes do not work!
			// This script must be executed on every hit!!!
		);
	}
}