scottmac / opengraph

Helper class for accessing the OpenGraph Protocol
463 stars 151 forks source link

Missing Underscore #34

Open pressmaster opened 9 years ago

pressmaster commented 9 years ago

Found a missing underscore right before values['image']:

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

This means the fallback isn't being used. Possibly better that way, anyway.

Edit: Not sure what the problem really is here.... I seem to have this code that works fine from a desktop but never works from my phone. Have cleared buffers, etc. Weird.