Skip to content

Commit

Permalink
Variable typo from base library corrected.
Browse files Browse the repository at this point in the history
Note pull request at scottmac/opengraph#30 - the
misnaming of this variable was causing OG to consistently fail to find
an image.
  • Loading branch information
AramZS authored and Douglas Linsmeyer committed Feb 19, 2015
1 parent 8da8853 commit 4eef384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PF_OpenGraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ static private function _parse($HTML) {
}

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

Expand Down

0 comments on commit 4eef384

Please sign in to comment.