mirror of
https://github.com/e107inc/e107.git
synced 2025-10-12 13:34:39 +02:00
Modal styling and size fixes.
This commit is contained in:
@@ -67,7 +67,8 @@ if($_POST['mode'] == 'tobbcode')
|
||||
$content = str_replace($srch, $repl, $content);
|
||||
|
||||
// resize the thumbnail to match wysiwyg width/height.
|
||||
$psrch = '/<img src="{e_BASE}thumb.php\?src=([\S]*)w=([\d]*)&h=([\d]*)"(.*)width="([\d]*)" height="([\d]*)"/i';
|
||||
|
||||
$psrch = '/<img[^>]*src="{e_BASE}thumb.php\?src=([\S]*)w=([\d]*)&h=([\d]*)"(.*)width="([\d]*)" height="([\d]*)"/i';
|
||||
$prepl = '<img src="{e_BASE}thumb.php?src=$1w=$5&h=$6"$4width="$5" height="$6" ';
|
||||
|
||||
$content = preg_replace($psrch, $prepl, $content);
|
||||
|
Reference in New Issue
Block a user