فهرست منبع

Ticket #3588 - Discussion app: Score element in Artificer.

AntonLV 4 سال پیش
والد
کامیت
aa352f08b0

+ 1 - 0
modules/boonex/artificer/data/template/bx_forum/score_do_vote_label.html

@@ -0,0 +1 @@
+<span class="sys-action-do __style_prefix__-do bx-def-valign-center group text-gray-700 dark:text-gray-300 hover:text-gray-800 dark:hover:text-white"><bx_if:show_image><span class="sys-action-do-image __style_prefix__-do-image bx-def-align-center"><img src="__src__" /></span></bx_if:show_image><bx_if:show_icon><span class="sys-action-do-icon __style_prefix__-do-icon bx-def-align-center"><i class="sys-icon __name__"></i></span></bx_if:show_icon><bx_if:show_text><span class="sys-action-do-text __style_prefix__-do-text bx-def-margin-sec-left-auto">__text__</span></bx_if:show_text></span>

+ 1 - 1
modules/boonex/forum/classes/BxForumGrid.php

@@ -215,7 +215,7 @@ class BxForumGrid extends BxTemplGrid
     {
     {
         $CNF = &$this->_oModule->_oConfig->CNF;
         $CNF = &$this->_oModule->_oConfig->CNF;
 
 
-        $oObject = isset($CNF['OBJECT_SCORES']) ? BxDolScore::getObjectInstance($CNF['OBJECT_SCORES'], $aRow[$CNF['FIELD_ID']]) : null;
+        $oObject = isset($CNF['OBJECT_SCORES']) ? BxDolScore::getObjectInstance($CNF['OBJECT_SCORES'], $aRow[$CNF['FIELD_ID']], true, $this->_oModule->_oTemplate) : null;
         $mixedValue = $oObject ? $oObject->getElementInline() : '';
         $mixedValue = $oObject ? $oObject->getElementInline() : '';
         
         
         return self::_getCellDefault($mixedValue, $sKey, $aField, $aRow);
         return self::_getCellDefault($mixedValue, $sKey, $aField, $aRow);