mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-03 06:55:03 +03:00
Изменение системы формирования и хранения блока Друзья в action`e Talk.
This commit is contained in:
parent
041f462557
commit
f30d4b85f4
|
@ -156,7 +156,14 @@ class ActionTalk extends Action {
|
|||
|
||||
protected function EventAdd() {
|
||||
$this->Viewer_AddHtmlTitle($this->Lang_Get('talk_menu_inbox_create'));
|
||||
$this->Viewer_AddBlocks('right',array('friends'));
|
||||
|
||||
/**
|
||||
* Получаем список друзей
|
||||
*/
|
||||
if($aUsersFriend=$this->User_GetUsersFriend($this->oUserCurrent->getId())) {
|
||||
$this->Viewer_Assign('aUsersFriend',$aUsersFriend);
|
||||
}
|
||||
$this->Viewer_AddBlocks('right',array('actions/ActionTalk/friends.tpl'));
|
||||
/**
|
||||
* Проверяем отправлена ли форма с данными
|
||||
*/
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
<?php
|
||||
/*-------------------------------------------------------
|
||||
*
|
||||
* LiveStreet Engine Social Networking
|
||||
* Copyright © 2008 Mzhelskiy Maxim
|
||||
*
|
||||
*--------------------------------------------------------
|
||||
*
|
||||
* Official site: www.livestreet.ru
|
||||
* Contact e-mail: rus.engine@gmail.com
|
||||
*
|
||||
* GNU General Public License, version 2:
|
||||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
*
|
||||
---------------------------------------------------------
|
||||
*/
|
||||
|
||||
/**
|
||||
* Обработка блока с друзьями пользователя
|
||||
*
|
||||
*/
|
||||
class BlockFriends extends Block {
|
||||
public function Exec() {
|
||||
/**
|
||||
* Получаем список друзей
|
||||
*/
|
||||
if($aUsersFriend=$this->User_GetUsersFriend($this->User_GetUserCurrent()->getId())) {
|
||||
$this->Viewer_Assign('aUsersFriend',$aUsersFriend);
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Reference in a new issue