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:
parent
5049fb2973
commit
def6816a61
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue