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

fix blocks

This commit is contained in:
Mzhelskiy Maxim 2011-08-21 16:14:13 +00:00
parent 5049fb2973
commit def6816a61
2 changed files with 6 additions and 4 deletions

View file

@ -23,8 +23,9 @@ class BlockBlogs extends Block {
public function Exec() {
if ($aResult=$this->Blog_GetBlogsRating(1,Config::Get('block.blogs.row'))) {
$aBlogs=$aResult['collection'];
$this->Viewer_Assign('aBlogs',$aBlogs);
$sTextResult=$this->Viewer_Fetch("block.blogs_top.tpl");
$oViewer=$this->Viewer_GetLocalViewer();
$oViewer->Assign('aBlogs',$aBlogs);
$sTextResult=$oViewer->Fetch("block.blogs_top.tpl");
$this->Viewer_Assign('sBlogsTop',$sTextResult);
}
}

View file

@ -22,8 +22,9 @@
class BlockStream extends Block {
public function Exec() {
if ($aComments=$this->Comment_GetCommentsOnline('topic',Config::Get('block.stream.row'))) {
$this->Viewer_Assign('aComments',$aComments);
$sTextResult=$this->Viewer_Fetch("block.stream_comment.tpl");
$oViewer=$this->Viewer_GetLocalViewer();
$oViewer->Assign('aComments',$aComments);
$sTextResult=$oViewer->Fetch("block.stream_comment.tpl");
$this->Viewer_Assign('sStreamComments',$sTextResult);
}
}