Revision 282
Added by stefan over 18 years ago
insert_image.php | ||
---|---|---|
38 | 38 |
// Get the directory to browse |
39 | 39 |
$directory = $admin->get_post('folder'); |
40 | 40 |
if($directory == '') { |
41 |
$directory = '/media';
|
|
41 |
$directory = MEDIA_DIRECTORY;
|
|
42 | 42 |
} |
43 | 43 |
// If the directory contains ../ then set it to /media |
44 | 44 |
if(strstr($directory, '../')) { |
45 |
$directory = '/media';
|
|
45 |
$directory = MEDIA_DIRECTORY;
|
|
46 | 46 |
} |
47 | 47 |
|
48 | 48 |
// Include the WB functions file |
Also available in: Unified diff
Replaced all remaining occurrences of '/media' by MEDIA_DIRECTORY - bug #108.