@@ -66,8 +66,7 @@ |
||
| 66 | 66 | user_loader $user_loader, |
| 67 | 67 | string $root_path, |
| 68 | 68 | string $php_ext |
| 69 | - ) |
|
| 70 | - { |
|
| 69 | + ) { |
|
| 71 | 70 | $this->config = $config; |
| 72 | 71 | $this->container = $container; |
| 73 | 72 | $this->helper = $helper; |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | $sort_key = $default_key; |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - $order_by = ($sort_key === 'a' ? $sort_key_sql[$sort_key] . ' ': 'MAX(' . $sort_key_sql[$sort_key] . ') ') . (($sort_dir === 'a') ? 'ASC' : 'DESC'); |
|
| 73 | + $order_by = ($sort_key === 'a' ? $sort_key_sql[$sort_key] . ' ' : 'MAX(' . $sort_key_sql[$sort_key] . ') ') . (($sort_dir === 'a') ? 'ASC' : 'DESC'); |
|
| 74 | 74 | |
| 75 | 75 | // Build a relevant pagination_url and sort_url. |
| 76 | 76 | // We do not use request_var() here directly to save some calls (not all variables are set) |