Commit 39771e4d6978a0fcb590281b050395969c0cc5ec

Authored by Anastasia
1 parent 7cf4c0ee

reply

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
views/artbox_comment_item.php
@@ -110,8 +110,9 @@ @@ -110,8 +110,9 @@
110 </div> 110 </div>
111 <div class="user_name"> 111 <div class="user_name">
112 <?php 112 <?php
  113 + $nameField = $display_name;
113 if (!empty($child->customer)) { 114 if (!empty($child->customer)) {
114 - echo $child->customer->username; 115 + echo $child->customer->$nameField;
115 } else { 116 } else {
116 echo $child->username . ' (' . Yii::t('artbox-comment', 'Guest') . ')'; 117 echo $child->username . ' (' . Yii::t('artbox-comment', 'Guest') . ')';
117 } 118 }