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.php
32 32
	$content = '';
33 33
}
34 34

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

  

Also available in: Unified diff