1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-27 16:20:13 +02:00

Image-resize options fix.

This commit is contained in:
Cameron
2012-12-12 19:28:39 -08:00
parent ac741b4d71
commit 971c4fd8b1
3 changed files with 11 additions and 11 deletions

View File

@@ -472,17 +472,18 @@ class media_form_ui extends e_admin_form_ui
if(vartrue($pref['e_imageresize']) && is_array($pref['e_imageresize']))
{
foreach($pref['e_imageresize'] as $val)
foreach($pref['e_imageresize'] as $k=>$val)
{
$options[$k] = ucfirst($k). " [img] bbcode";
}
}
$options = $pref['resize_dimensions'];
foreach($options as $key=>$title)
{
$title = ucwords(str_replace("-"," ",$key));
$valW = vartrue($curval[$key]['w']);
$valH = vartrue($curval[$key]['h']);