Revision 1578
Added by Luisehahne almost 14 years ago
| modify.php | ||
|---|---|---|
| 23 | 23 |
} |
| 24 | 24 |
/* -------------------------------------------------------- */ |
| 25 | 25 |
|
| 26 |
$MEDIA_URL = WB_URL.MEDIA_DIRECTORY;
|
|
| 26 |
$MEDIA_REL = WB_URL.MEDIA_DIRECTORY;
|
|
| 27 | 27 |
// Get page content |
| 28 |
$query = 'SELECT `content` FROM `'.TABLE_PREFIX.'mod_wysiwyg` WHERE `section_id`='.(int)$section_id;
|
|
| 28 |
$sql = 'SELECT `content` FROM `'.TABLE_PREFIX.'mod_wysiwyg` WHERE `section_id`='.(int)$section_id;
|
|
| 29 | 29 |
if ( ($content = $database->get_one($sql)) ) {
|
| 30 |
$content = htmlspecialchars(str_replace('{SYSVAR:MEDIA_REL}',$MEDIA_URL, $content));
|
|
| 30 |
$content = htmlspecialchars(str_replace('{SYSVAR:MEDIA_REL}',$MEDIA_REL, $content));
|
|
| 31 | 31 |
}else {
|
| 32 | 32 |
$content = ''; |
| 33 | 33 |
} |
Also available in: Unified diff
fixed warning in domain independend image links