День добрый!
В живой ленте после первого поста выдает ошибку:
Fatal error: Class 'CMobile' not found in C:\Bitrix\www\bitrix\components\bitrix\disk.uf.file\templates\mobile\result_modifier.php on line 16
Пропал правый блок и после ошибки нет ничего. Другие разделы работают. Как быть?
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
if (strpos($this->__page, "show") === 0)
{
CModule::IncludeModule("mobileapp");
$arParams["THUMB_SIZE"] = array("width" => 70, "height" => 70); // thumb
$arParams["MAX_SIZE"] = array("width" => 550, "height" => 832); // inline
$arParams["SMALL_SIZE"] = array("width" => 75, "height" => 100); // inline rough
$arParams["HTML_SIZE"] = (!!$arParams["HTML_SIZE"] ? $arParams["HTML_SIZE"] : false); // inline from parser
$images = array();
$files = array();
$max_dimension = max(array(intval(CMobile::getInstance()->getDevicewidth()), intval(CMobile::getInstance()->getDeviceheight())));
if ($max_dimension < 650)
{
$max_dimension = 650;
}
elseif ($max_dimension < 1300)
{
$max_dimension = 1300;
}
else
{
$max_dimension = 2050;
}