Changeset 23428 for branches/version-2_13-dev/data/class/pages/admin/design/LC_Page_Admin_Design_CSS.php
- Timestamp:
- 2014/05/19 11:04:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/pages/admin/design/LC_Page_Admin_Design_CSS.php
r23124 r23428 76 76 $objFormParam->convParam(); 77 77 $this->arrErr = $objFormParam->checkError(); 78 $is_error = (!SC_Utils_Ex::isBlank($this->arrErr));78 $is_error = !SC_Utils_Ex::isBlank($this->arrErr); 79 79 80 80 // CSSファイル名を取得 81 81 $this->css_name = $objFormParam->getValue('css_name'); 82 $this->old_css_name = $objFormParam->getValue('old_css_name' , $this->css_name);82 $this->old_css_name = $objFormParam->getValue('old_css_name'); 83 83 $this->device_type_id = $objFormParam->getValue('device_type_id', DEVICE_TYPE_PC); 84 84 … … 90 90 case 'confirm': 91 91 if (!$is_error) { 92 $this->arrErr = $this->lfCheckError($objFormParam, $this->arrErr);92 $this->arrErr = array_merge($this->arrErr, $this->lfCheckError($objFormParam, $this->arrErr)); 93 93 if (SC_Utils_Ex::isBlank($this->arrErr)) { 94 94 if ($this->doRegister($css_dir, $this->css_name, $this->old_css_name, $css_path, … … 119 119 } 120 120 121 if ( !$is_error&& $this->checkPath($this->css_name)) {121 if (SC_Utils_Ex::isBlank($this->arrErr) && $this->checkPath($this->css_name)) { 122 122 // CSSファイルの読み込み 123 123 if (!SC_Utils_Ex::isBlank($this->css_name)) { … … 234 234 235 235 $css_name = $objFormParam->getValue('css_name'); 236 $old_css_name = $objFormParam->getValue('old_css_name', $css_name); 236 $old_css_name = $objFormParam->getValue('old_css_name'); 237 $device_type_id = $objFormParam->getValue('device_type_id', DEVICE_TYPE_PC); 237 238 238 239 $is_error = false; 239 240 // 重複チェック 240 if ( !SC_Utils_Ex::isBlank(($objErr->arrErr['css_name']))) {241 $arrCSSList = $this->getCSSList($this->getCSSDir( ));241 if (SC_Utils_Ex::isBlank($objErr->arrErr['css_name'])) { 242 $arrCSSList = $this->getCSSList($this->getCSSDir($device_type_id)); 242 243 foreach ($arrCSSList as $val) { 243 244 if ($val['css_name'] == $css_name) {
Note: See TracChangeset
for help on using the changeset viewer.