Project

General

Profile

« Previous | Next » 

Revision 1581

Added by darkviper almost 13 years ago

some little fixes in wysiwyg module

View differences:

view.php
21 21
	throw new IllegalFileException();
22 22
}
23 23
/* -------------------------------------------------------- */
24
$MEDIA_REL = WB_URL.MEDIA_DIRECTORY;
25
// Get content
24
$sMediaUrl = WB_URL.MEDIA_DIRECTORY;
25
// Get content 
26 26
$content = '';
27 27
$sql = 'SELECT `content` FROM `'.TABLE_PREFIX.'mod_wysiwyg` WHERE `section_id`='.(int)$section_id;
28 28
if( ($content = $database->get_one($sql)) ) {
29
	$content = str_replace('{SYSVAR:MEDIA_REL}',$MEDIA_REL, $content );
29
	$content = str_replace('{SYSVAR:MEDIA_REL}', $sMediaUrl, $content );
30 30
}
31 31
echo $content;

Also available in: Unified diff