Project

General

Profile

« Previous | Next » 

Revision 1578

Added by Dietmar over 12 years ago

fixed warning in domain independend image links

View differences:

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