Ver código fonte

Remove call of setting "user_name_sort_by" not used anymore #2469

jmontoyaa 7 anos atrás
pai
commit
82f724d675
1 arquivos alterados com 0 adições e 5 exclusões
  1. 0 5
      main/inc/lib/internationalization.lib.php

+ 0 - 5
main/inc/lib/internationalization.lib.php

@@ -1003,11 +1003,6 @@ function api_is_western_name_order($format = null, $language = null)
  */
 function api_sort_by_first_name($language = null)
 {
-    $userNameSortBy = api_get_setting('user_name_sort_by');
-    if (!empty($userNameSortBy) && in_array($userNameSortBy, ['firstname', 'lastname'])) {
-        return $userNameSortBy == 'firstname' ? true : false;
-    }
-
     static $sort_by_first_name = [];
 
     if (empty($language)) {