Project

General

Profile

« Previous | Next » 

Revision 2058

Added by darkviper almost 11 years ago

! change wysiwyg module from filterMediaRel to filterReplaceSysvar
! change wb::ReplaceAbsoluteMediaUrl from filterMediaRel to filterReplaceSysvar

View differences:

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

Also available in: Unified diff