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:

modify.php
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)) !== null) {
30
	$content = str_replace('{SYSVAR:MEDIA_REL}', $sMediaUrl, $content);
31
	$content = htmlspecialchars(str_replace('{SYSVAR:WB_REL}', WB_URL, $content));
30
    $sFilterApi = WB_PATH.'/modules/output_filter/OutputFilterApi.php';
31
    if (is_readable($sFilterApi)) {
32
        require_once($sFilterApi);
33
        $content = OutputFilterApi('ReplaceSysvar', $content);
34
    }
35
	$content = htmlspecialchars($content);
32 36
} else {
33 37
 $content = 'There is an relation error in the database.';
34 38
 $sql = 'INSERT INTO `'.TABLE_PREFIX.'mod_wysiwyg` SET '

Also available in: Unified diff