mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-20 15:31:42 +02:00
[ticket/13713] Fix priorities
PHPBB3-13713
This commit is contained in:
@@ -15,6 +15,20 @@ namespace phpbb\mention\source;
|
||||
|
||||
class group extends base_group
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function get_priority($row)
|
||||
{
|
||||
/*
|
||||
* Presence in array with all names for this type should not increase the priority
|
||||
* Otherwise names will not be properly sorted because we fetch them in batches
|
||||
* and the name from 'special' source can be absent from the array with all names
|
||||
* and therefore it will appear lower than needed
|
||||
*/
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user