AntonLV %!s(int64=8) %!d(string=hai) anos
pai
achega
503ab33615
Modificáronse 1 ficheiros con 7 adicións e 3 borrados
  1. 7 3
      inc/classes/BxDolCmts.php

+ 7 - 3
inc/classes/BxDolCmts.php

@@ -554,10 +554,14 @@ class BxDolCmts extends BxDolFactory implements iBxDolReplaceable, iBxDolContent
 
     public function getObjectTitle ($iObjectId = 0)
     {
-    	if(empty($this->_aSystem['trigger_field_title']))
-    		return '';
+        if(empty($this->_aSystem['trigger_field_title']))
+            return '';
+
+        $sTitle = $this->_oQuery->getObjectTitle ($iObjectId ? $iObjectId : $this->getId());
+        if(get_mb_substr($sTitle, 0, 1) == '_')
+            $sTitle = _t($sTitle);
 
-        return $this->_oQuery->getObjectTitle ($iObjectId ? $iObjectId : $this->getId());
+        return $sTitle;
     }
 
     public function getCommentsCountAll ($iObjectId = 0)