apply usort workaround for readability-php because its authors were unable to do so for 3 months (https://github.com/andreskrey/readability.php/issues/99)

master
Andrew Dolgov 3 years ago
parent 8e1281b41e
commit 92c78beb90

@ -195,7 +195,7 @@ class Readability
// No luck after removing flags, just return the longest text we found during the different loops
usort($this->attempts, function ($a, $b) {
return $a['textLength'] < $b['textLength'];
return $b['textLength'] - $a['textLength'];
});
// But first check if we actually have something

Loading…
Cancel
Save