scale_external_images: Fix: Hadn't looked for pictures in the format [img=XxY]
This commit is contained in:
parent
f140a6da89
commit
6456c2484e
|
@ -802,7 +802,7 @@ function scale_external_images($s, $include_link = true, $scale_replace = false)
|
||||||
$s = htmlspecialchars_decode($s);
|
$s = htmlspecialchars_decode($s);
|
||||||
|
|
||||||
$matches = null;
|
$matches = null;
|
||||||
$c = preg_match_all('/\[img\](.*?)\[\/img\]/ism',$s,$matches,PREG_SET_ORDER);
|
$c = preg_match_all('/\[img.*?\](.*?)\[\/img\]/ism',$s,$matches,PREG_SET_ORDER);
|
||||||
if($c) {
|
if($c) {
|
||||||
require_once('include/Photo.php');
|
require_once('include/Photo.php');
|
||||||
foreach($matches as $mtch) {
|
foreach($matches as $mtch) {
|
||||||
|
|
Loading…
Reference in a new issue