mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 20:04:34 +02:00
Show in server info page which natural sorting method is used
This should ease debugging
This commit is contained in:
parent
5ede61118c
commit
d6ff22fc44
5 changed files with 129 additions and 5 deletions
|
@ -55,6 +55,15 @@ class Natsort extends FunctionNode
|
|||
self::$allowSlowNaturalSort = $allow;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the slow natural sort is allowed
|
||||
* @return bool
|
||||
*/
|
||||
public static function isSlowNaturalSortAllowed(): bool
|
||||
{
|
||||
return self::$allowSlowNaturalSort;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the MariaDB version which is connected to supports the natural sort (meaning it has a version of 10.7.0 or higher)
|
||||
* The result is cached in memory.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue