Revision 2007
Added by darkviper about 11 years ago
view.php | ||
---|---|---|
25 | 25 |
// Get content |
26 | 26 |
$content = ''; |
27 | 27 |
$sql = 'SELECT `content` FROM `'.TABLE_PREFIX.'mod_wysiwyg` WHERE `section_id`='.(int)$section_id; |
28 |
if( ($content = $database->get_one($sql)) ) {
|
|
28 |
if(($content = $database->get_one($sql))) {
|
|
29 | 29 |
$content = str_replace('{SYSVAR:MEDIA_REL}', $sMediaUrl, $content ); |
30 |
$content = str_replace('{SYSVAR:WB_REL}', WB_URL, $content ); |
|
30 | 31 |
} |
31 | 32 |
echo $content; |
Also available in: Unified diff
! modules/wysiwyg made completely independend from hardcoded internal URLs