Skip to content

Commit f5ca21a

Browse files
committed
Variable typo from base library corrected.
Note pull request at scottmac/opengraph#30 - the misnaming of this variable was causing OG to consistently fail to find an image.
1 parent 6fafa9d commit f5ca21a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/PF_OpenGraph.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static private function _parse($HTML) {
115115
}
116116

117117
//Fallback to use image_src if ogp::image isn't set.
118-
if (!isset($page->values['image'])) {
118+
if (!isset($page->_values['image'])) {
119119
$domxpath = new DOMXPath($doc);
120120
$elements = $domxpath->query("//link[@rel='image_src']");
121121

0 commit comments

Comments
 (0)