Revision 1581
Added by darkviper about 13 years ago
modify.php | ||
---|---|---|
23 | 23 |
} |
24 | 24 |
/* -------------------------------------------------------- */ |
25 | 25 |
|
26 |
$MEDIA_REL = WB_URL.MEDIA_DIRECTORY;
|
|
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 | 29 |
if ( ($content = $database->get_one($sql)) ) { |
30 |
$content = htmlspecialchars(str_replace('{SYSVAR:MEDIA_REL}',$MEDIA_REL, $content));
|
|
30 |
$content = htmlspecialchars(str_replace('{SYSVAR:MEDIA_REL}', $sMediaUrl, $content));
|
|
31 | 31 |
}else { |
32 | 32 |
$content = ''; |
33 | 33 |
} |
... | ... | |
71 | 71 |
</tr> |
72 | 72 |
</table> |
73 | 73 |
</form> |
74 |
<br /> |
|
74 |
<br /> |
Also available in: Unified diff
some little fixes in wysiwyg module