|
From: OryNider <ory...@us...> - 2007-12-21 00:29:04
|
Update of /cvsroot/mxbb/core/modules/mx_phpbb3blocks/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21404/includes Modified Files: mx_functions_display.php Log Message: some modifications with issues template system releated... Index: mx_functions_display.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_phpbb3blocks/includes/mx_functions_display.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_functions_display.php 9 Sep 2007 16:53:17 -0000 1.1 --- mx_functions_display.php 21 Dec 2007 00:28:58 -0000 1.2 *************** *** 16,26 **** function mx_display_forums($root_data = '', $display_moderators = true, $return_moderators = false) { ! global $db, $phpbb_auth, $mx_user, $template, $mx_request_vars; global $phpbb_root_path, $phpEx, $board_config; $forum_rows = $subforums = $forum_ids = $forum_ids_moderator = $forum_moderators = $active_forum_ary = array(); $parent_id = $visible_forums = 0; $sql_from = ''; ! // Mark forums read? $mark_read = $mx_request_vars->request('mark', MX_TYPE_NO_TAGS, ''); --- 16,27 ---- function mx_display_forums($root_data = '', $display_moderators = true, $return_moderators = false) { ! global $db, $phpbb_auth, $mx_user, $template; global $phpbb_root_path, $phpEx, $board_config; + global $mx_request_vars; $forum_rows = $subforums = $forum_ids = $forum_ids_moderator = $forum_moderators = $active_forum_ary = array(); $parent_id = $visible_forums = 0; $sql_from = ''; ! // Mark forums read? $mark_read = $mx_request_vars->request('mark', MX_TYPE_NO_TAGS, ''); *************** *** 388,395 **** } } ! $template->assign_block_vars('forumrow', array( 'S_IS_CAT' => false, ! 'S_NO_CAT' => $catless && !$last_catless, 'S_IS_LINK' => ($row['forum_type'] == FORUM_LINK) ? true : false, 'S_UNREAD_FORUM' => $forum_unread, --- 389,402 ---- } } ! ! // ! //This was someting that mxBB template sytsem didn't supported so S_LAST_CAT was introduced fom S_NO_CAT ! //The template shold be changed allso ;) ! // ! $template->assign_block_vars('forumrow', array( 'S_IS_CAT' => false, ! 'S_LAST_CAT' => $last_catless, ! 'S_NO_CAT' => $catless, 'S_IS_LINK' => ($row['forum_type'] == FORUM_LINK) ? true : false, 'S_UNREAD_FORUM' => $forum_unread, *************** *** 432,436 **** ); } ! $last_catless = $catless; } --- 439,443 ---- ); } ! $last_catless = $catless; } |