mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-27 19:03:49 +01:00
LSattr_html_select_list :: _sort() : make really static
This commit is contained in:
parent
b577fe23a9
commit
9f858c6f0f
1 changed files with 2 additions and 3 deletions
|
@ -177,12 +177,11 @@ class LSattr_html_select_list extends LSattr_html{
|
|||
* Apply sort feature on possible values if this feature is enabled
|
||||
*
|
||||
* @param[in] &$retInfos array Possible values array reference to sort
|
||||
* @param[in] $options array|false Attribute options (optional)
|
||||
* @param[in] $options array|false Attribute options
|
||||
*
|
||||
* @retval void
|
||||
**/
|
||||
protected function _sort(&$retInfos,$options=false) {
|
||||
if (!$options) $options=$this -> config['html_options'];
|
||||
protected static function _sort(&$retInfos, $options) {
|
||||
if (!isset($options['sort']) || $options['sort']) {
|
||||
if (isset($options['sortDirection']) && $options['sortDirection']=='DESC') {
|
||||
uasort($retInfos,array('LSattr_html_select_list','_sortTwoValuesDesc'));
|
||||
|
|
Loading…
Reference in a new issue