Revision 2007
Added by darkviper almost 12 years ago
| modify.php | ||
|---|---|---|
| 26 | 26 |
$sMediaUrl = WB_URL.MEDIA_DIRECTORY; |
| 27 | 27 |
// Get page content |
| 28 | 28 |
$sql = 'SELECT `content` FROM `'.TABLE_PREFIX.'mod_wysiwyg` WHERE `section_id`='.(int)$section_id; |
| 29 |
if ( ($content = $database->get_one($sql)) !== null ) {
|
|
| 30 |
$content = htmlspecialchars(str_replace('{SYSVAR:MEDIA_REL}', $sMediaUrl, $content));
|
|
| 29 |
if (($content = $database->get_one($sql)) !== null) {
|
|
| 30 |
$content = str_replace('{SYSVAR:MEDIA_REL}', $sMediaUrl, $content);
|
|
| 31 |
$content = htmlspecialchars(str_replace('{SYSVAR:WB_REL}', WB_URL, $content));
|
|
| 31 | 32 |
} else {
|
| 32 | 33 |
$content = 'There is an relation error in the database.'; |
| 33 | 34 |
$sql = 'INSERT INTO `'.TABLE_PREFIX.'mod_wysiwyg` SET ' |
Also available in: Unified diff
! modules/wysiwyg made completely independend from hardcoded internal URLs