scale_external_images: Fix: Hadn't looked for pictures in the format [img=XxY]

This commit is contained in:
Michael Vogel 2012-07-25 23:40:23 +02:00
parent f140a6da89
commit 6456c2484e

View file

@ -802,7 +802,7 @@ function scale_external_images($s, $include_link = true, $scale_replace = false)
$s = htmlspecialchars_decode($s);
$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) {
require_once('include/Photo.php');
foreach($matches as $mtch) {