Project

General

Profile

« Previous | Next » 

Revision 243

Added by stefan over 18 years ago

Reintroduced option 'none' to WYSIWYG editor selection list in settings.

View differences:

trunk/wb/admin/settings/index.php
227 227

  
228 228
// Insert WYSIWYG modules
229 229
$template->set_block('main_block', 'editor_list_block', 'editor_list');
230
$file='none';  
231
$module_name=$TEXT['NONE'];  
232
$template->set_var('FILE', $file);  
233
$template->set_var('NAME', $module_name);  
234
if((!defined('WYSIWYG_EDITOR') OR $file == WYSIWYG_EDITOR) ? $selected = ' selected' : $selected = '');  
235
$template->set_var('SELECTED', $selected);  
236
$template->parse('editor_list', 'editor_list_block', true);  
230 237
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'wysiwyg'");
231 238
if($result->numRows() > 0) {
232 239
	while($addon = $result->fetchRow()) {

Also available in: Unified diff