[ticket/12612] Prefix _sort_last_active() with phpbb_

PHPBB3-12612
This commit is contained in:
Joas Schilling 2014-06-23 22:38:58 +02:00
parent 7575c478c7
commit b72fdd9acf
2 changed files with 2 additions and 2 deletions

View file

@ -1588,7 +1588,7 @@ function phpbb_show_profile($data, $user_notes_enabled = false, $warn_user_enabl
return $template_data; return $template_data;
} }
function _sort_last_active($first, $second) function phpbb_sort_last_active($first, $second)
{ {
global $id_cache, $sort_dir; global $id_cache, $sort_dir;

View file

@ -1400,7 +1400,7 @@ switch ($mode)
if ($sort_key == 'l') 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));")); // 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) for ($i = 0, $end = sizeof($user_list); $i < $end; ++$i)