Project

General

Profile

« Previous | Next » 

Revision 801

Added by doc about 16 years ago

Moved edit module CSS functions from modules to WB core (avoid code duplication; improve maintenance of code)

View differences:

modify_settings.php
33 33
// Include WB admin wrapper script
34 34
require(WB_PATH.'/modules/admin.php');
35 35

  
36
// include functions to edit the optional module CSS files (frontend.css, backend.css)
37
require_once('css.functions.php');
36
// include core functions of WB 2.7 to edit the optional module CSS files (frontend.css, backend.css)
37
@include_once(WB_PATH .'/framework/module.functions.php');
38 38

  
39 39
// check if module language file exists for the language set by the user (e.g. DE, EN)
40 40
if(!file_exists(WB_PATH .'/modules/form/languages/'.LANGUAGE .'.php')) {
......
63 63
?>
64 64
<h2><?php echo $MOD_FORM['SETTINGS']; ?></h2>
65 65
<?php
66
	// include the button to edit the optional module CSS files
67
	// Note: CSS styles for the button are defined in backend.css (div class="mod_moduledirectory_edit_css")
68
	// Place this call outside of any <form></form> construct!!!
69
	css_edit('form');
66
// include the button to edit the optional module CSS files
67
// Note: CSS styles for the button are defined in backend.css (div class="mod_moduledirectory_edit_css")
68
// Place this call outside of any <form></form> construct!!!
69
if(function_exists('edit_module_css')) {
70
	edit_module_css('form');
71
}
70 72
?>
71 73

  
72 74
<form name="edit" action="<?php echo WB_URL; ?>/modules/form/save_settings.php" method="post" style="margin: 0;">

Also available in: Unified diff