Changeset 2068866
- Timestamp:
- 04/15/2019 01:44:13 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smartframe/tags/1.4.0/vendor/smartframe/smartlib/src/App/Sections/Publicc/PublicSectionManager.php
r2068847 r2068866 98 98 $doc = new DOMDocument(); 99 99 // 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); 102 103 if (preg_match('/(<!doctype html>|<!--WPFC_)/i', $buffer) === 1) { 103 104 $imgs = $doc->getElementsByTagName('img'); … … 152 153 $height = $img->getAttribute('height'); 153 154 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')); 155 156 156 157 $smartframe = $doc->createElement('smart-frame');
Note: See TracChangeset
for help on using the changeset viewer.