diff options
author | Andres Rey <[email protected]> | 2016-11-14 17:32:41 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2016-11-14 17:32:41 +0000 |
commit | d7f2d7602cd8d07470ec3fa367d380d88c5e7c88 (patch) | |
tree | 9b042ea63ac995bda179634554810d859a44a10d /src/Readability.php | |
parent | c33298328f73e6c8f34e07ec9e92f2b6dd3c514b (diff) |
Fixed a wrong call to get the ID using 'class' as tag name instead of 'id'
Diffstat (limited to 'src/Readability.php')
-rw-r--r-- | src/Readability.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Readability.php b/src/Readability.php index 35b6514..0e0b341 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -204,7 +204,7 @@ class Readability extends Element implements ReadabilityInterface } // Look for a special ID - $id = $this->getAttribute('class'); + $id = $this->getAttribute('id'); if (trim($id)) { if (preg_match($this->regexps['negative'], $id)) { $weight -= 25; |