[TheFreeNetwork] Small rewrite to the onStartTFNLookup event

This commit is contained in:
t3nma 2020-08-04 02:45:32 +01:00 committed by Diogo Peralta Cordeiro
parent 2a863ba746
commit bda5a7db97

View File

@ -79,11 +79,13 @@ class TheFreeNetworkModule extends Module
{ {
$profile_id = $this->lookup($uri, $class); $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) { if (!$perf && $this->lrdd) {
// Force lookup with online resources // Force lookup with online resources
$profile_id = $this->lookup($uri, $class, true); $profile_id = $this->lookup($uri, $class, true);
}
} }
return false; return false;