Revision 1102
Added by Ruud over 15 years ago
setparameter.php | ||
---|---|---|
48 | 48 |
$dirs[] = WB_PATH.MEDIA_DIRECTORY; |
49 | 49 |
foreach($dirs AS $name) { |
50 | 50 |
$r = str_replace(WB_PATH, '', $name); |
51 |
$r = str_replace('/','_',$r);
|
|
51 |
$r = str_replace(array('/',' '),'_',$r);
|
|
52 | 52 |
$w = (int)$admin->get_post_escaped($r.'-w'); |
53 | 53 |
$h = (int)$admin->get_post_escaped($r.'-h'); |
54 | 54 |
$pathsettings[$r]['width']=$w; |
... | ... | |
94 | 94 |
|
95 | 95 |
foreach($dirs AS $name) { |
96 | 96 |
$relative = str_replace(WB_PATH, '', $name); |
97 |
$safepath = str_replace('/','_',$relative);
|
|
97 |
$safepath = str_replace(array('/',' '),'_',$relative);
|
|
98 | 98 |
$cur_width = $cur_height = ''; |
99 | 99 |
if (isset($pathsettings[$safepath]['width'])) $cur_width = $pathsettings[$safepath]['width']; |
100 | 100 |
if (isset($pathsettings[$safepath]['height'])) $cur_height = $pathsettings[$safepath]['height']; |
Also available in: Unified diff
Fixed a bug in the /admin/media resizer parameters for dirs with whitespaces
Fixed a bug in FCKeditor include.php. Now the editor can be used from other subdirectories than WB_PATH/modules/mymodule