DELETE FROM _widgets WHERE wd_id = 'css_add';\r
INSERT INTO _widgets\r
(wd_id, wd_name, wd_template_type, wd_version, wd_params, wd_author, wd_copyright, wd_license, wd_official_level, wd_description, wd_read_scripts, wd_read_css, wd_available, wd_editable, wd_has_admin, wd_enable_operation, wd_use_instance_def, wd_initialized, wd_launch_index, wd_cache_type, wd_view_control_type, wd_release_dt, wd_install_dt, wd_create_dt) VALUES\r
-('css_add', 'CSS追加', 'bootstrap,wordpress', '2.0.0', '', 'Naoki Hirata', 'Magic3.org', 'GPL', 10, 'テンプレートのCSSに加えてCSS定義を追加するためのウィジェットです。', false, false, true, true, true, false, true, true, 0, 3, 1, '2017-07-25', now(), now());\r
+('css_add', 'CSS追加', 'bootstrap,wordpress', '3.0.0', '', 'Naoki Hirata', 'Magic3.org', 'GPL', 10, 'テンプレートのCSSに加えてCSS定義を追加するためのウィジェットです。', false, false, true, true, true, false, true, true, 0, 3, 1, '2018-09-13', now(), now());\r
DELETE FROM _widgets WHERE wd_id = 'print';\r
INSERT INTO _widgets\r
(wd_id, wd_name, wd_version, wd_author, wd_copyright, wd_license, wd_official_level, wd_description, wd_read_scripts, wd_read_css, wd_add_script_lib, wd_add_script_lib_a, wd_has_admin, wd_enable_operation, wd_use_instance_def, wd_initialized, wd_cache_type, wd_view_control_type, wd_install_dt, wd_create_dt) VALUES\r
if ($act == 'add'){// 新規追加
// 入力チェック
$this->checkInput($name, '名前');
-// $this->checkInput($this->css, 'CSS');
- $this->checkByteSize($this->css, 'CSS', self::CSS_MAX_LENGTH); // CSS文字列
+ $this->checkByteSize($this->css, 'CSS', self::CSS_MAX_LENGTH, true/*空OK*/); // CSS文字列
// 設定名の重複チェック
for ($i = 0; $i < count($this->paramObj); $i++){
}
} else if ($act == 'update'){ // 設定更新のとき
// 入力値のエラーチェック
- //$this->checkInput($this->css, 'CSS');
- $this->checkByteSize($this->css, 'CSS', self::CSS_MAX_LENGTH); // CSS文字列
+ $this->checkByteSize($this->css, 'CSS', self::CSS_MAX_LENGTH, true/*空OK*/); // CSS文字列
if ($this->getMsgCount() == 0){ // エラーのないとき
// 現在の設定値を取得