ソースを参照

Merge branch 'master' of https://github.com/unacms/una

AntonLV 2 年 前
親
コミット
22a3579cc5
1 ファイル変更、10 行追加、4 行削除
  1. 10 4
      template/scripts/BxBasePage.php

+ 10 - 4
template/scripts/BxBasePage.php

@@ -564,11 +564,17 @@ class BxBasePage extends BxDolPage
                  * Process page cover with related menus and lists.
                  */
                 if(BxDolCover::getInstance($this)->isCover()) {
+                    $aProfileInfo = BxDolProfile::getData($this->_aProfileInfo['id'], [
+                        'get_avatar' => 'getAvatarBig',
+                        'with_info' => true
+                    ]);
+                    
+                    unset($aProfileInfo['info']['profile_email']);
+                    unset($aProfileInfo['info']['profile_last_active']);
+                    unset($aProfileInfo['info']['profile_ip']);
+                    
                     $a['cover_block'] = [
-                        'profile' => BxDolProfile::getData($this->_aProfileInfo['id'], [
-                            'get_avatar' => 'getAvatarBig',
-                            'with_info' => true
-                        ]),
+                        'profile' => $aProfileInfo,
                         'actions_menu' => '',
                         'meta_menu' => '',
                         'badges' => BxDolProfile::getInstance($this->_aProfileInfo['id'])->getBadges(),