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

2022.09-rc
Michael Vogel 2012-07-25 23:40:23 +02:00
rodzic f140a6da89
commit 6456c2484e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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) {