diff --git a/application/classes/modules/user/entity/User.entity.class.php b/application/classes/modules/user/entity/User.entity.class.php index 3304f7cc..95365975 100644 --- a/application/classes/modules/user/entity/User.entity.class.php +++ b/application/classes/modules/user/entity/User.entity.class.php @@ -484,7 +484,7 @@ class ModuleUser_EntityUser extends Entity } if ($this->getProfileAvatar()) { - return $this->Media_GetImageWebPath($this->getProfileAvatar(), $iSize); + return $this->Media_GetImageWebPath($this->getProfileAvatar(), $iSize) . '?' . date('His', strtotime($this->getProfileDate())); } else { return $this->Media_GetImagePathBySize(Router::GetFixPathWeb(Config::Get('path.skin.assets.web')) . '/images/avatars/avatar_' . ($this->getProfileSex() == 'woman' ? 'female' : 'male') . '.png', $iSize); diff --git a/application/frontend/components/topic/topic-add.tpl b/application/frontend/components/topic/topic-add.tpl index a59dfede..3e3f0993 100644 --- a/application/frontend/components/topic/topic-add.tpl +++ b/application/frontend/components/topic/topic-add.tpl @@ -10,7 +10,7 @@ {component_define_params params=[ 'topic', 'type', 'skipBlogs', 'blogs', 'classes' ]}
- {hook run="form_add_topic_begin"} + {hook run="form_add_topic_begin" topic=$topic} {block 'add_topic_form_begin'}{/block} {* Выбор блога *} @@ -158,7 +158,7 @@ {block 'add_topic_form_end'}{/block} - {hook run="form_add_topic_end"} + {hook run="form_add_topic_end" topic=$topic} {* Скрытые поля *} diff --git a/application/frontend/skin/developer/assets/js/init.js b/application/frontend/skin/developer/assets/js/init.js index e364f48b..bf250daa 100644 --- a/application/frontend/skin/developer/assets/js/init.js +++ b/application/frontend/skin/developer/assets/js/init.js @@ -392,7 +392,7 @@ jQuery(document).ready(function($){ }, changeavatar: function ( event, _this, avatars ) { $( '.js-user-profile-avatar, .js-wall-entry[data-user-id=' + _this.option( 'params.target_id' ) + '] .ls-comment-avatar img' ).attr( 'src', avatars[ '64crop' ] + '?' + Math.random() ); - $( '.nav-item--userbar-username img' ).attr( 'src', avatars[ '24crop' ] + '?' + Math.random() ); + $( '.ls-nav-item--userbar-username img' ).attr( 'src', avatars[ '24crop' ] + '?' + Math.random() ); } });