• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/update_class.php
  • Класс: CUpdateSystem
  • Вызов: CUpdateSystem::InsertSpaces
static function InsertSpaces($sText, $iMaxChar=80)
{
	$iMaxChar = intval($iMaxChar);
	if ($iMaxChar>0 && strlen($sText)>$iMaxChar)
		$sText = preg_replace("#([^ \n\r\t]{".$iMaxChar."})#", "\1 ", $sText);
	return $sText;
}