Skip to content

Commit

Permalink
CHANGE-577 - extraction of $sort_order in default_filter.php
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte authored and zcwilt committed Aug 28, 2013
1 parent 964404e commit fdba3f0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions includes/index_filters/default_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* show the products of a specified manufacturer
*
* @package productTypes
* @copyright Copyright 2003-2012 Zen Cart Development Team
* @copyright Copyright 2003-2013 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @todo Need to add/fine-tune ability to override or insert entry-points on a per-product-type basis
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
Expand Down Expand Up @@ -123,8 +123,8 @@
$_GET['sort'] = '20a';
}
} else {
$sort_col = substr($_GET['sort'], 0 , 1);
$sort_order = substr($_GET['sort'], 1);
$sort_col = substr($_GET['sort'], 0, 1);
$sort_order = substr($_GET['sort'], -1);
switch ($column_list[$sort_col-1]) {
case 'PRODUCT_LIST_MODEL':
$listing_sql .= " order by p.products_model " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
Expand Down
6 changes: 3 additions & 3 deletions includes/index_filters/music_genre_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* show the products of a specified music_genre
*
* @package productTypes
* @copyright Copyright 2003-2012 Zen Cart Development Team
* @copyright Copyright 2003-2013 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @todo Need to add/fine-tune ability to override or insert entry-points on a per-product-type basis
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
Expand Down Expand Up @@ -146,8 +146,8 @@
$_GET['sort'] = '20a';
}
} else {
$sort_col = substr($_GET['sort'], 0 , 1);
$sort_order = substr($_GET['sort'], 1);
$sort_col = substr($_GET['sort'], 0, 1);
$sort_order = substr($_GET['sort'], -1);
switch ($column_list[$sort_col-1])
{
case 'PRODUCT_LIST_MODEL':
Expand Down
6 changes: 3 additions & 3 deletions includes/index_filters/record_company_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* show the products of a specified record company
*
* @package productTypes
* @copyright Copyright 2003-2012 Zen Cart Development Team
* @copyright Copyright 2003-2013 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @todo Need to add/fine-tune ability to override or insert entry-points on a per-product-type basis
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
Expand Down Expand Up @@ -146,8 +146,8 @@
$_GET['sort'] = '20a';
}
} else {
$sort_col = substr($_GET['sort'], 0 , 1);
$sort_order = substr($_GET['sort'], 1);
$sort_col = substr($_GET['sort'], 0, 1);
$sort_order = substr($_GET['sort'], -1);
switch ($column_list[$sort_col-1])
{
case 'PRODUCT_LIST_MODEL':
Expand Down

1 comment on commit fdba3f0

@torvista
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also found in \includes\modules\pages\advanced_search_result\header_php.php

Please sign in to comment.