Project

General

Profile

« Previous | Next » 

Revision 1660

Added by Dietmar about 12 years ago

! add group_id to news group overview
  1. fixed Fatal error: Cannot redeclare show_wysiwyg_editor()

View differences:

modify_post.php
35 35
$query_content = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_news_posts WHERE post_id = '$post_id'");
36 36
$fetch_content = $query_content->fetchRow();
37 37

  
38
if (!defined('WYSIWYG_EDITOR') OR WYSIWYG_EDITOR=="none" OR !file_exists(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php')) {
39
	function show_wysiwyg_editor($name,$id,$content,$width,$height) {
40
		echo '<textarea name="'.$name.'" id="'.$id.'" rows="10" cols="1" style="width: '.$width.'; height: '.$height.';">'.$content.'</textarea>';
38
if(!isset($wysiwyg_editor_loaded)) {
39
    $wysiwyg_editor_loaded=true;
40
	if (!defined('WYSIWYG_EDITOR') OR WYSIWYG_EDITOR=="none" OR !file_exists(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php')) {
41
		function show_wysiwyg_editor($name,$id,$content,$width,$height) {
42
			echo '<textarea name="'.$name.'" id="'.$id.'" rows="10" cols="1" style="width: '.$width.'; height: '.$height.';">'.$content.'</textarea>';
43
		}
44
	} else {
45
		$id_list=array("short","long");
46
		require(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php');
41 47
	}
42
} else {
43
	$id_list=array("short","long");
44
	require(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php');
45 48
}
46 49

  
47 50
// include jscalendar-setup

Also available in: Unified diff