Revision 1875
Added by Luisehahne over 12 years ago
| modify.php | ||
|---|---|---|
| 26 | 26 |
$sMediaUrl = WB_URL.MEDIA_DIRECTORY; |
| 27 | 27 |
// Get page content |
| 28 | 28 |
$sql = 'SELECT `content` FROM `'.TABLE_PREFIX.'mod_wysiwyg` WHERE `section_id`='.(int)$section_id; |
| 29 |
if ( ($content = $database->get_one($sql)) ) {
|
|
| 29 |
if ( ($content = $database->get_one($sql)) !== null ) {
|
|
| 30 | 30 |
$content = htmlspecialchars(str_replace('{SYSVAR:MEDIA_REL}', $sMediaUrl, $content));
|
| 31 |
}else {
|
|
| 32 |
$content = '';
|
|
| 31 |
} else {
|
|
| 32 |
throw new AppException('Database: missing entry in table \''.TABLE_PREFIX.'mod_wysiwyg\' for section_id='.$section_id);
|
|
| 33 | 33 |
} |
| 34 | 34 |
|
| 35 | 35 |
if(!isset($wysiwyg_editor_loaded)) {
|
| 36 |
$wysiwyg_editor_loaded=true;
|
|
| 36 |
$wysiwyg_editor_loaded=true;
|
|
| 37 | 37 |
if(!function_exists('show_wysiwyg_editor'))
|
| 38 | 38 |
{
|
| 39 | 39 |
if (!defined('WYSIWYG_EDITOR') OR WYSIWYG_EDITOR=="none" OR !file_exists(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php'))
|
Also available in: Unified diff
! wysgwyg, now check exitings table entries, otherwise script stop loading content in editor
! typofix in groups
! change constant DB_NAME to $database->DbName