mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/12612] Prefix _sort_last_active() with phpbb_
PHPBB3-12612
This commit is contained in:
parent
7575c478c7
commit
b72fdd9acf
2 changed files with 2 additions and 2 deletions
|
@ -1588,7 +1588,7 @@ function phpbb_show_profile($data, $user_notes_enabled = false, $warn_user_enabl
|
|||
return $template_data;
|
||||
}
|
||||
|
||||
function _sort_last_active($first, $second)
|
||||
function phpbb_sort_last_active($first, $second)
|
||||
{
|
||||
global $id_cache, $sort_dir;
|
||||
|
||||
|
|
|
@ -1400,7 +1400,7 @@ switch ($mode)
|
|||
if ($sort_key == 'l')
|
||||
{
|
||||
// uasort($id_cache, create_function('$first, $second', "return (\$first['last_visit'] == \$second['last_visit']) ? 0 : ((\$first['last_visit'] < \$second['last_visit']) ? $lesser_than : ($lesser_than * -1));"));
|
||||
usort($user_list, '_sort_last_active');
|
||||
usort($user_list, 'phpbb_sort_last_active');
|
||||
}
|
||||
|
||||
for ($i = 0, $end = sizeof($user_list); $i < $end; ++$i)
|
||||
|
|
Loading…
Add table
Reference in a new issue