Plugin Directory

Changeset 2068866


Ignore:
Timestamp:
04/15/2019 01:44:13 PM (7 years ago)
Author:
smartframe
Message:

version 1.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smartframe/tags/1.4.0/vendor/smartframe/smartlib/src/App/Sections/Publicc/PublicSectionManager.php

    r2068847 r2068866  
    9898        $doc = new DOMDocument();
    9999        // Load $buffer as HTML
    100         $doc->loadHTML($buffer);
    101 
     100        libxml_use_internal_errors(true);
     101        @$doc->loadHTML($buffer);
     102        libxml_use_internal_errors(false);
    102103        if (preg_match('/(<!doctype html>|<!--WPFC_)/i', $buffer) === 1) {
    103104            $imgs = $doc->getElementsByTagName('img');
     
    152153                $height = $img->getAttribute('height');
    153154                if (empty($width) || empty($height))
    154                     list($width, $height, $type, $attr) = getimagesize($img->getAttribute('src'));
     155                    list($width, $height, $type, $attr) = @getimagesize($img->getAttribute('src'));
    155156
    156157                $smartframe = $doc->createElement('smart-frame');
Note: See TracChangeset for help on using the changeset viewer.