1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-15 02:57:15 +02:00

MediaPicker fixes.

This commit is contained in:
Cameron
2018-08-11 12:04:46 -07:00
parent f5cf253091
commit 891b5f044e
3 changed files with 132 additions and 139 deletions

View File

@@ -1823,7 +1823,7 @@ class media_admin_ui extends e_admin_ui
$tp = e107::getParser();
$parms = array(
'width' => 340,
'width' => 340, // when inserting into wysiwyg
'height' => 220,
'type' =>'image',
'category' => $category,
@@ -1839,6 +1839,10 @@ class media_admin_ui extends e_admin_ui
if(!empty($option['bbcode']))
{
$close = false;
e107::getBB()->setClass($category);
$parms['width'] = (int) e107::getBB()->resizeWidth(); // resize the image according to prefs.
$parms['height'] = (int) e107::getBB()->resizeHeight();
e107::getBB()->clearclass();
}