Page MenuHomeIn-Portal Phabricator

in-portal
No OneTemporary

File Metadata

Created
Sun, Feb 2, 10:08 PM

in-portal

Index: trunk/kernel/units/category_items/category_items_tag_processor.php
===================================================================
--- trunk/kernel/units/category_items/category_items_tag_processor.php (revision 1704)
+++ trunk/kernel/units/category_items/category_items_tag_processor.php (revision 1705)
@@ -1,26 +1,27 @@
<?php
class CategoryItemsTagProcessor extends kDBTagProcessor
{
function CategoryName($params)
{
$root_phrase = $this->Application->ConfigValue('Root_Name');
$value = $this->Field($params);
$ret = $this->Application->Phrase($root_phrase).( $value ? ' > ' : '').$value;
if( $this->Field( Array('field'=> 'PrimaryCat') ) == 1 )
{
- $ret .= ' ('.$params['primary_title'].')';
+ $label = $params['primary_title'];
+ $ret .= ' ('.$this->Application->Phrase($label).')';
}
return $ret;
}
function GetMainID()
{
$object =& $this->Application->recallObject( $this->getPrefixSpecial() );
$table_info = $object->getLinkedInfo();
return $table_info['ParentId'];
}
}
?>
\ No newline at end of file
Property changes on: trunk/kernel/units/category_items/category_items_tag_processor.php
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.4
\ No newline at end of property
+1.5
\ No newline at end of property
Index: trunk/core/units/category_items/category_items_tag_processor.php
===================================================================
--- trunk/core/units/category_items/category_items_tag_processor.php (revision 1704)
+++ trunk/core/units/category_items/category_items_tag_processor.php (revision 1705)
@@ -1,26 +1,27 @@
<?php
class CategoryItemsTagProcessor extends kDBTagProcessor
{
function CategoryName($params)
{
$root_phrase = $this->Application->ConfigValue('Root_Name');
$value = $this->Field($params);
$ret = $this->Application->Phrase($root_phrase).( $value ? ' > ' : '').$value;
if( $this->Field( Array('field'=> 'PrimaryCat') ) == 1 )
{
- $ret .= ' ('.$params['primary_title'].')';
+ $label = $params['primary_title'];
+ $ret .= ' ('.$this->Application->Phrase($label).')';
}
return $ret;
}
function GetMainID()
{
$object =& $this->Application->recallObject( $this->getPrefixSpecial() );
$table_info = $object->getLinkedInfo();
return $table_info['ParentId'];
}
}
?>
\ No newline at end of file
Property changes on: trunk/core/units/category_items/category_items_tag_processor.php
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.4
\ No newline at end of property
+1.5
\ No newline at end of property

Event Timeline