• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/convertorspregreplacehelper.php
  • Класс: CConvertorsPregReplaceHelper
  • Вызов: CConvertorsPregReplaceHelper::convertQuoteTag
public function convertQuoteTag($match)
{
	$this->quoteOpened = 0;
	$this->quoteClosed = 0;
	$this->quoteError  = 0;

	$str = $match[0];
	$str = preg_replace_callback("#\[quote\]#i",  array($this, "convertOpenQuoteTag"),  $str);
	$str = preg_replace_callback("#\[/quote\]#i", array($this, "convertCloseQuoteTag"), $str);

	if ($this->checkQuoteError())
		return $str;
	else
		return $match[0];
}