[TheFreeNetwork] Small rewrite to the onStartTFNLookup event

This commit is contained in:
t3nma 2020-08-04 02:45:32 +01:00
parent 34c5be5c42
commit c7055341f9

View File

@ -79,11 +79,13 @@ class TheFreeNetworkModule extends Module
{
$profile_id = $this->lookup($uri, $class);
$perf = common_config('performance', 'high');
if (is_null($profile_id)) {
$perf = common_config('performance', 'high');
if (is_null($profile_id) && !$perf && $this->lrdd) {
// Force lookup with online resources
$profile_id = $this->lookup($uri, $class, true);
if (!$perf && $this->lrdd) {
// Force lookup with online resources
$profile_id = $this->lookup($uri, $class, true);
}
}
return false;