AntonLV 9 лет назад
Родитель
Сommit
0af2c09f4a

+ 5 - 4
modules/boonex/forum/classes/BxForumGrid.php

@@ -36,6 +36,7 @@ class BxForumGrid extends BxTemplGrid
     	if(!empty($this->_aBrowseParams['type']))
 	    	switch($this->_aBrowseParams['type']) {
 	    		case 'new':
+                case 'index':
 	    		case 'author':
                 case 'favorite':
 	    		case 'category':
@@ -45,19 +46,19 @@ class BxForumGrid extends BxTemplGrid
                 case 'featured':
 					$sField = 'featured';
 	                break;
-	
+
 				case 'updated':
 					$sField = 'changed';
 	                break;
-	
+
 				case 'latest':
 					$sField = 'lr_timestamp';
 	                break;
-	
+
 				case 'top':
 					$sField = 'comments';
 	                break;
-	
+
 	            case 'popular':
 	            	$sField = 'views';
 	                break;

+ 2 - 2
modules/boonex/forum/install/langs/en.xml

@@ -104,8 +104,8 @@
     <string name="_bx_forum_page_block_title_new_entries_view_extended"><![CDATA[New (Extended View)]]></string>
     <string name="_bx_forum_page_block_title_new_entries_view_full"><![CDATA[New (Full View)]]></string>
     <string name="_bx_forum_page_block_title_latest_entries"><![CDATA[Discussions With Recent Posts]]></string>
-    <string name="_bx_forum_page_block_title_latest_entries_view_extended"><![CDATA[Latest (Extended View)]]></string>
-    <string name="_bx_forum_page_block_title_latest_entries_view_full"><![CDATA[Latest (Full View)]]></string>
+    <string name="_bx_forum_page_block_title_latest_entries_view_extended"><![CDATA[Discussions With Recent Posts (Extended View)]]></string>
+    <string name="_bx_forum_page_block_title_latest_entries_view_full"><![CDATA[Discussions With Recent Posts (Full View)]]></string>
     <string name="_bx_forum_page_block_title_top_entries"><![CDATA[Top]]></string>
     <string name="_bx_forum_page_block_title_top_entries_view_extended"><![CDATA[Top (Extended View)]]></string>
     <string name="_bx_forum_page_block_title_top_entries_view_full"><![CDATA[Top (Full View)]]></string>

+ 1 - 1
modules/boonex/forum/install/sql/enable.sql

@@ -154,7 +154,7 @@ INSERT INTO `sys_pages_blocks`(`object`, `cell_id`, `module`, `title_system`, `t
 -- PAGE: add block to homepage
 SET @iBlockOrder = (SELECT `order` FROM `sys_pages_blocks` WHERE `object` = 'sys_home' AND `cell_id` = 1 ORDER BY `order` DESC LIMIT 1);
 INSERT INTO `sys_pages_blocks`(`object`, `cell_id`, `module`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES 
-('sys_home', 1, @sName, '_bx_forum_page_block_title_latest_entries', 11, 2147483647, 'service', 'a:3:{s:6:"module";s:8:"bx_forum";s:6:"method";s:12:"browse_index";s:6:"params";a:4:{i:0;s:5:"table";i:1;b:0;i:2;b:1;i:3;b:0;}}', 1, 0, 0, IFNULL(@iBlockOrder, 0) + 1);
+('sys_home', 1, @sName, '_bx_forum_page_block_title_new_entries', 11, 2147483647, 'service', 'a:3:{s:6:"module";s:8:"bx_forum";s:6:"method";s:12:"browse_index";s:6:"params";a:4:{i:0;s:5:"table";i:1;b:0;i:2;b:1;i:3;b:0;}}', 1, 0, 0, IFNULL(@iBlockOrder, 0) + 1);
 
 -- PAGES: add page block to profiles modules (trigger* page objects are processed separately upon modules enable/disable)
 SET @iPBCellProfile = 2;