Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagephp
title/core/units/categories/categories_tag_processor.php
function PageInfo($params)
{
	$page =& $this->_getPage($params);

	switch ($params['type']) {
		.....

		case 'meta_nofollownoindex':
			$db_field = 'MetaNofollowNoindex';
			break;

		.....

		default:
			return '';
 	}

	$default = isset($params['default']) ? $params['default'] : '';
	$val = $page->GetField($db_field);

	if ( $db_field == 'MetaNofollowNoindex' ) {
		return str_replace('|',', ',trim($val,'|'));
	}
	.....

	return $val;
}

Related Tasks

Jira Legacy
serverSystem Jira
serverId513b375f-8291-3313-9d9f-704c39b1f915
keyINP-1592