|
From: Jon O. <jon...@us...> - 2007-04-28 20:04:40
|
Update of /cvsroot/mxbb/mx_bugsbt/bugsbt/includes
In directory sc8-pr-cvs16:/tmp/cvs-serv28146/includes
Modified Files:
functions_bugsbt.php
Log Message:
fixes
Index: functions_bugsbt.php
===================================================================
RCS file: /cvsroot/mxbb/mx_bugsbt/bugsbt/includes/functions_bugsbt.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** functions_bugsbt.php 15 Feb 2007 12:43:47 -0000 1.1
--- functions_bugsbt.php 28 Apr 2007 20:04:35 -0000 1.2
***************
*** 569,573 ****
*
*/
! function list_items( $cat_id = false, $pre = '', $current_bug_id = '', $sql_xtra = '' )
{
global $db, $bugs_config, $template, $board_config;
--- 569,573 ----
*
*/
! function list_items( $cat_id = false, $pre = '', $current_bug_id = '', $sql_xtra = '', $limit = false )
{
global $db, $bugs_config, $template, $board_config;
***************
*** 594,597 ****
--- 594,602 ----
}
+ if ($limit)
+ {
+ $sql_limit = " LIMIT $limit";
+ }
+
switch ( SQL_LAYER )
{
***************
*** 606,610 ****
$sql_xtra
GROUP BY t.bug_id
! ORDER BY " . $this->sort_method_extra . $this->sort_method . " " . $this->sort_order;
break;
--- 611,615 ----
$sql_xtra
GROUP BY t.bug_id
! ORDER BY " . $this->sort_method_extra . $this->sort_method . " " . $this->sort_order . $sql_limit;
break;
***************
*** 619,623 ****
$sql_xtra
GROUP BY t.bug_id
! ORDER BY " . $this->sort_method_extra . $this->sort_method . " " . $this->sort_order;
break;
}
--- 624,628 ----
$sql_xtra
GROUP BY t.bug_id
! ORDER BY " . $this->sort_method_extra . $this->sort_method . " " . $this->sort_order . $sql_limit;
break;
}
***************
*** 652,656 ****
// Format the date for the given file
// ===================================================
! $article_date = create_date( $board_config['default_dateformat'], $file_rowset[$i]['bug_date'], $board_config['board_timezone'] );
//
--- 657,662 ----
// Format the date for the given file
// ===================================================
! $bug_date = create_date( $board_config['default_dateformat'], $file_rowset[$i]['bug_date'], $board_config['board_timezone'] );
! $bug_update_date = create_date( $board_config['default_dateformat'], $file_rowset[$i]['bug_update_date'], $board_config['board_timezone'] );
//
***************
*** 705,709 ****
'PRODUCT' => $edition_name . ' [' . $build_name . ']',
'STATUS' => $bug_type,
! 'REPORTED' => $article_date,
));
--- 711,716 ----
'PRODUCT' => $edition_name . ' [' . $build_name . ']',
'STATUS' => $bug_type,
! 'REPORTED' => $bug_date,
! 'UPDATED' => $bug_update_date,
));
***************
*** 717,731 ****
if ( $filelist )
{
- //
}
else
{
! if ($this->cat_rowset[$cat_id]['cat_allow_file'])
! {
! //$template->assign_block_vars( 'no_articles', array(
! // 'L_NO_ARTICLES' => $lang['No_articles'],
! // 'L_NO_ARTICLES_CAT' => $lang['No_Articles']
! //) );
! }
}
--- 724,734 ----
if ( $filelist )
{
}
else
{
! $template->assign_block_vars( 'no_bugs', array(
! 'L_NO_ARTICLES' => $lang['No_bugs'],
! 'L_NO_ARTICLES_CAT' => $lang['No_Bugs']
! ));
}
|