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 110 </div>
111 111 <div class="user_name">
112 112 <?php
  113 + $nameField = $display_name;
113 114 if (!empty($child->customer)) {
114   - echo $child->customer->username;
  115 + echo $child->customer->$nameField;
115 116 } else {
116 117 echo $child->username . ' (' . Yii::t('artbox-comment', 'Guest') . ')';
117 118 }
... ...