• Модуль: wiki
  • Путь к файлу: ~/bitrix/modules/wiki/classes/general/wiki_parser.php
  • Класс: CWikiParser
  • Вызов: CWikiParser::_processInternalLinkPrepareCallback
function _processInternalLinkPrepareCallback($matches)
{
	$sLink = trim($matches[1]);
	$sName = $sTitle = $sLink;
	$sCatName = '';
	$matches[3] = isset($matches[3]) ? trim($matches[3]) : '';

	if (!empty($matches[3]))
		$sName = $sTitle = $matches[3];
	else
	{
		if (CWikiUtils::IsCategoryPage($sName, $sCatName))
			return '##Category##';
	}

	$sTitle = strip_tags($sTitle);
	$i = count($this->arLink);
	$this->arLink[] = CWikiUtils::htmlspecialcharsback($matches[1], true);
	$sReturn = ''.$sName.'';
	return $sReturn;
}