Revision 1876
Added by Dietmar over 11 years ago
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 = htmlspecialchars(str_replace('{SYSVAR:MEDIA_REL}', $sMediaUrl, $content));
|
|
30 |
$content = htmlspecialchars(str_replace('{SYSVAR:MEDIA_REL}', $sMediaUrl, $content));
|
|
31 | 31 |
} else { |
32 |
throw new AppException('Database: missing entry in table \''.TABLE_PREFIX.'mod_wysiwyg\' for section_id='.$section_id); |
|
32 |
$content = 'There is an relation error in the database.'; |
|
33 |
$sql = 'INSERT INTO `'.TABLE_PREFIX.'mod_wysiwyg` SET ' |
|
34 |
. '`section_id`='.$section_id.', ' |
|
35 |
. '`page_id`='.$page_id.', ' |
|
36 |
. '`content`=\''.$content.'\', ' |
|
37 |
. '`text`=\''.$content.'\''; |
|
38 |
if($database->query($sql)) { |
|
39 |
$content .= ' WebsiteBaker has solved this problem successful.'; |
|
40 |
}else { |
|
41 |
throw new AppException('Database: missing entry in table \''.TABLE_PREFIX.'mod_wysiwyg\' for section_id='.$section_id); |
|
42 |
} |
|
33 | 43 |
} |
34 |
|
|
35 | 44 |
if(!isset($wysiwyg_editor_loaded)) { |
36 | 45 |
$wysiwyg_editor_loaded=true; |
37 | 46 |
if(!function_exists('show_wysiwyg_editor')) |
Also available in: Unified diff
! wysgwyg, first try to repair missing table entries
! page sections typofix in header