From 5f37fbf81678122c071cd2524e7998c6193c28de Mon Sep 17 00:00:00 2001 From: Aram Zucker-Scharff Date: Thu, 8 Jan 2015 11:16:24 -0500 Subject: [PATCH] Images always failing - results in no images The property `_values` was misnamed as `values` causing the function to always consider image retrieval a failure, often not offering an alternative. Discovered this problem while working on PressForward. This simple fix should resolve a ton of problems, most notably #29. --- OpenGraph.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenGraph.php b/OpenGraph.php index af2e7b6..b9096f6 100644 --- a/OpenGraph.php +++ b/OpenGraph.php @@ -126,7 +126,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']");