Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
frame.php
1<?
2//This file still exists because of SiteUpdate features.
3//When you reinstall updates (main 17.1.0 with previous ones),
4//SiteUpdate includes old version of 'include.php' which invokes Frame::shouldBeEnabled().
5
6$oldClassName = "Bitrix\\Main\\Page\\Frame";
7$newClassName = "Bitrix\\Main\\Composite\\Engine";
8$newClassFile = $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/lib/composite/engine.php";
9
10if (!class_exists($oldClassName, false))
11{
12 if (class_exists($newClassName, false))
13 {
14 class_alias($newClassName, $oldClassName, false);
15 }
16 else if (file_exists($newClassFile))
17 {
18 require_once($newClassFile);
19 }
20}