mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Profiler/Misc
* fix realm selection in profiler filters * minor cleanup of prQueue
This commit is contained in:
@@ -918,6 +918,37 @@ trait sourceHelper
|
||||
}
|
||||
}
|
||||
|
||||
trait TrProfilerFilter
|
||||
{
|
||||
protected function cbRegionCheck(string &$v) : bool
|
||||
{
|
||||
if (in_array($v, Util::$regions))
|
||||
{
|
||||
$this->parentCats[0] = $v; // directly redirect onto this region
|
||||
$v = ''; // remove from filter
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function cbServerCheck(string &$v) : bool
|
||||
{
|
||||
foreach (Profiler::getRealms() as $realm)
|
||||
{
|
||||
if (Profiler::urlize($realm['name']) != $v)
|
||||
continue;
|
||||
|
||||
$this->parentCats[1] = $v; // directly redirect onto this server
|
||||
$v = ''; // remove from filter
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
abstract class Filter
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user