Revision 1102
Added by Ruud over 15 years ago
trunk/CHANGELOG | ||
---|---|---|
11 | 11 |
! = Update/Change |
12 | 12 |
|
13 | 13 |
------------------------------------- 2.8.0 ------------------------------------- |
14 |
30-July-2009 Ruud Eisinga (Ruud) |
|
15 |
# Fixed a bug in the /admin/media resizer parameters for dirs with whitespaces (thnx to tiesy) |
|
16 |
# Fixed a bug in FCKeditor include.php. Now the editor can be used from other |
|
17 |
subdirectories than WB_PATH/modules/mymodule |
|
14 | 18 |
29-July 2009 Dietrich Roland Pehlke (Aldus) |
15 | 19 |
# changes in framework/class.wb.php to avoid the "print->footer()" bug in the frontend, |
16 | 20 |
as this function/method doesn't exists for the frontend. |
trunk/wb/admin/media/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']; |
trunk/wb/admin/media/upload.php | ||
---|---|---|
50 | 50 |
|
51 | 51 |
// Create relative path of the target location for the file |
52 | 52 |
$relative = WB_PATH.$target.'/'; |
53 |
$resizepath = str_replace('/','_',$target);
|
|
53 |
$resizepath = str_replace(array('/',' '),'_',$target);
|
|
54 | 54 |
|
55 | 55 |
// Find out whether we should replace files or give an error |
56 | 56 |
if($admin->get_post('overwrite') != '') { |
trunk/wb/modules/fckeditor/include.php | ||
---|---|---|
30 | 30 |
|
31 | 31 |
function get_template_name() { |
32 | 32 |
// returns the template name of the current displayed page |
33 |
require_once('../../config.php'); |
|
33 |
|
|
34 |
// Loading config.php is not needed here, it is loaded before. It breaks the module when the editor is called form another dir as WB_PATH/modules/mymodule |
|
35 |
// require_once('../../config.php'); |
|
34 | 36 |
require_once(WB_PATH. '/framework/class.database.php'); |
35 | 37 |
|
36 | 38 |
// work out default editor.css file for FCKEditor |
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