1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-16 23:00:51 +03:00

Фикс путей в бэкенде

This commit is contained in:
Denis Shakhov 2014-04-28 17:32:22 +07:00
parent f95163e12a
commit 65fb4c5202
7 changed files with 11 additions and 10 deletions

View file

@ -1339,7 +1339,7 @@ class ActionAjax extends Action {
/**
* Топик существует?
*/
if (!($oTopic=$this->Topic_GetTopicById(getRequestStr('id',null,'post')))) {
if (!($oTopic=$this->Topic_GetTopicById(getRequestStr('iTargetId',null,'post')))) {
return $this->EventErrorDebug();
}
/**
@ -1412,7 +1412,7 @@ class ActionAjax extends Action {
/**
* Комментарий существует?
*/
if (!($oComment=$this->Comment_GetCommentById(getRequestStr('id',null,'post')))) {
if (!($oComment=$this->Comment_GetCommentById(getRequestStr('iTargetId',null,'post')))) {
return $this->EventErrorDebug();
}
/**
@ -1476,7 +1476,7 @@ class ActionAjax extends Action {
/**
* Сообщение существует?
*/
if (!($oTalk=$this->Talk_GetTalkById(getRequestStr('id',null,'post')))) {
if (!($oTalk=$this->Talk_GetTalkById(getRequestStr('iTargetId',null,'post')))) {
return $this->EventErrorDebug();
}
/**

View file

@ -1450,7 +1450,7 @@ class ActionBlog extends Action {
'sUserWebPath'=>$oUser->getUserWebPath(),
'sUserAvatar48'=>$oUser->getProfileAvatarPath(48),
'iUserId'=>$oUser->getId(),
'sHtml'=>$oViewer->Fetch("user_list_small_item.blog_invite.tpl")
'sHtml'=>$oViewer->Fetch("components/user_list_small/user_list_small_item.blog_invite.tpl")
);
$this->SendBlogInvite($oBlog,$oUser);
} else {

View file

@ -136,7 +136,7 @@ class ActionPeople extends Action {
$oViewer->Assign('bUseMore', true);
$oViewer->Assign('bHideMore', $bHideMore);
$oViewer->Assign('iSearchCount', $aResult['count']);
$this->Viewer_AssignAjax('sText',$oViewer->Fetch("user_list.tpl"));
$this->Viewer_AssignAjax('sText',$oViewer->Fetch("components/user_list/user_list.tpl"));
/**
* Для подгрузки
*/

View file

@ -342,7 +342,7 @@ class ActionStream extends Action {
'sUserLogin'=>htmlspecialchars($sUser),
'sUserWebPath'=>$oUser->getUserWebPath(),
'sUserAvatar48'=>$oUser->getProfileAvatarPath(48),
'sHtml'=>$oViewer->Fetch("user_list_small_item.tpl")
'sHtml'=>$oViewer->Fetch("components/user_list_small/user_list_small_item.tpl")
);
} else {
$aResult[]=array(

View file

@ -782,7 +782,7 @@ class ActionTalk extends Action {
'sUserLogin'=>htmlspecialchars($sUser),
'sUserWebPath'=>$oUser->getUserWebPath(),
'sUserAvatar48'=>$oUser->getProfileAvatarPath(48),
'sHtml'=>$oViewer->Fetch("user_list_small_item.tpl")
'sHtml'=>$oViewer->Fetch("components/user_list_small/user_list_small_item.tpl")
);
} else {
$aResult[]=array(
@ -1061,7 +1061,7 @@ class ActionTalk extends Action {
'sUserLink'=>$oUser->getUserWebPath(),
'sUserWebPath'=>$oUser->getUserWebPath(),
'sUserAvatar48'=>$oUser->getProfileAvatarPath(48),
'sHtml'=>$oViewer->Fetch("user_list_small_item.message.tpl")
'sHtml'=>$oViewer->Fetch("components/user_list_small/user_list_small_item.message.tpl")
);
$bState=true;
} else {
@ -1123,7 +1123,7 @@ class ActionTalk extends Action {
'sMsgTitle'=>$this->Lang_Get('attention'),
'sMsg'=>$this->Lang_Get('user_list_add.notices.success_add',array('login',htmlspecialchars($sUser))),
'iUserId'=>$oUser->getId(),
'sHtml'=>$oViewer->Fetch("user_list_small_item.message.tpl")
'sHtml'=>$oViewer->Fetch("components/user_list_small/user_list_small_item.message.tpl")
);
$bState=true;
} else {

View file

@ -223,7 +223,7 @@ class ActionUserfeed extends Action {
'sUserLogin'=>htmlspecialchars($sUser),
'sUserWebPath'=>$oUser->getUserWebPath(),
'sUserAvatar48'=>$oUser->getProfileAvatarPath(48),
'sHtml'=>$oViewer->Fetch("user_list_small_item.tpl")
'sHtml'=>$oViewer->Fetch("components/user_list_small/user_list_small_item.tpl")
);
} else {
$aResult[]=array(

View file

@ -494,6 +494,7 @@ $config['head']['default']['js'] = array(
/* LiveStreet */
"___path.application.web___/frontend/common/js/favourite.js",
"___path.application.web___/frontend/common/js/favourite_topic.js",
"___path.application.web___/frontend/common/js/blocks.js",
"___path.application.web___/frontend/common/js/pagination.js",
"___path.application.web___/frontend/common/js/editor.js",