From: Rene R. <ren...@us...> - 2003-05-26 15:33:01
|
Update of /cvsroot/bobs/bobs/inc In directory sc8-pr-cvs1:/tmp/cvs-serv13573/inc Modified Files: class_files.php Log Message: This fixes the "sort files" error in the files view. Bug ID: 708499 Index: class_files.php =================================================================== RCS file: /cvsroot/bobs/bobs/inc/class_files.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- class_files.php 29 Oct 2002 03:15:42 -0000 1.6 +++ class_files.php 26 May 2003 15:30:20 -0000 1.7 @@ -12,6 +12,7 @@ var $data = ''; // input data var $sort = ''; // what should files be sorted by (name|namerev|size|sizerev|date|daterev) var $config; + var $where; function files ($config) { @@ -31,6 +32,8 @@ // $string defines the path to show files for // $where defines which db to search. + + $this->where = $where; //create a new database object $db = new database($this->config); @@ -214,7 +217,7 @@ $html .= '<img src=images/bar/bar_name.gif>'; $html .= '<img src=images/bar/bar_spacer.gif height="19" width="25">'; - $link = '<a href=files.php?show=&sort='; + $link = '<a href=files.php?show=&where=' . $this->where .'&sort='; if ( $this->sort == 1 ) { $link .= 'namerev><img src=images/bar/arrow_selected_down.gif>'; } elseif ( $this->sort == 4 ) { @@ -240,7 +243,7 @@ $html .= '<img src=images/bar/bar_size.gif>'; $html .= '<img src=images/bar/bar_spacer.gif height="19" width="25">'; - $link = '<a href=files.php?show=&sort='; + $link = '<a href=files.php?show=&where=' . $this->where .'&sort='; if ( $this->sort == 3 ) { $link .= 'sizerev><img src=images/bar/arrow_selected_up.gif>'; } elseif ( $this->sort == 6 ) { @@ -264,7 +267,7 @@ $html .= '<img src=images/bar/bar_spacer.gif height="19" width="20">'; $html .= '<img src=images/bar/bar_date.gif>'; $html .= '<img src=images/bar/bar_spacer.gif height="19" width="25">'; - $link = '<a href=files.php?show=&sort='; + $link = '<a href=files.php?show=&where=' . $this->where .'&sort='; if ( $this->sort == 2 ) { $link .= 'daterev><img src=images/bar/arrow_selected_up.gif>'; } elseif ( $this->sort == 5 ) { |