Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
errorcatcher.php
1
<?
2
namespace
Bitrix\Main\UI\Uploader
;
8
class
ErrorCatcher
9
{
15
public
function
log
($path, $errorText)
16
{
17
if
(check_bitrix_sessid() &&
18
is_string($path) &&
19
is_string($errorText) &&
20
\
Bitrix
\Main\
Config
\Option::get(
"main"
,
"uploaderLog"
,
"N"
) ==
"Y"
)
21
{
22
trigger_error(
"Uploading error! Path: "
.mb_substr($path, 0, 100).
"\n Text:"
.mb_substr($errorText, 0, 500), E_USER_WARNING);
23
}
24
}
25
}
Bitrix\Main\UI\Uploader\ErrorCatcher
Definition
errorcatcher.php:9
Bitrix\Main\UI\Uploader\ErrorCatcher\log
log($path, $errorText)
Definition
errorcatcher.php:15
Bitrix\Main\Config
Definition
configuration.php:2
Bitrix\Main\UI\Uploader
Definition
errorcatcher.php:2
Bitrix
modules
main
lib
ui
uploader
errorcatcher.php
Создано системой
1.10.0