Project

General

Profile

« Previous | Next » 

Revision 1578

Added by Dietmar over 12 years ago

fixed warning in domain independend image links

View differences:

branches/2.8.x/CHANGELOG
11 11
! = Update/Change
12 12

  
13 13
=========================== add small Features 2.8.2 ==========================
14
16 Jan-2012 Build 1578 Dietmar Woellbrink (Luisehahne)
15
# fixed warning in domain independend image links
14 16
16 Jan-2012 Build 1577 Dietmar Woellbrink (Luisehahne)
15 17
# fixed save dirmode and filmode to 0 if not superadmin
16 18
16 Jan-2012 Build 1576 Werner v.d.Decken(DarkViper)
branches/2.8.x/wb/admin/interface/version.php
52 52

  
53 53
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
54 54
if(!defined('VERSION')) define('VERSION', '2.8.2');
55
if(!defined('REVISION')) define('REVISION', '1577');
55
if(!defined('REVISION')) define('REVISION', '1578');
56 56
if(!defined('SP')) define('SP', 'SP2');
branches/2.8.x/wb/modules/wysiwyg/view.php
21 21
	throw new IllegalFileException();
22 22
}
23 23
/* -------------------------------------------------------- */
24
$MEDIA_URL = WB_URL.MEDIA_DIRECTORY;
24
$MEDIA_REL = WB_URL.MEDIA_DIRECTORY;
25 25
// Get content
26 26
$content = '';
27 27
$sql = 'SELECT `content` FROM `'.TABLE_PREFIX.'mod_wysiwyg` WHERE `section_id`='.(int)$section_id;
branches/2.8.x/wb/modules/wysiwyg/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