mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-08 04:22:40 +00:00
Make sure direction values are lowercased to be consistent.
This commit is contained in:
parent
a99766c897
commit
8287981855
2 changed files with 2 additions and 2 deletions
|
@ -351,7 +351,7 @@ class PaginatorHelper extends AppHelper {
|
|||
|
||||
$title = __(Inflector::humanize(preg_replace('/_id$/', '', $title)));
|
||||
}
|
||||
$defaultDir = isset($options['direction']) ? $options['direction'] : 'asc';
|
||||
$defaultDir = isset($options['direction']) ? strtolower($options['direction']) : 'asc';
|
||||
unset($options['direction']);
|
||||
|
||||
$locked = isset($options['lock']) ? $options['lock'] : false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue