Changeset 22503 for branches/version-2_12-multilang/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php
- Timestamp:
- 2013/02/05 18:21:13 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-multilang/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php
r22496 r22503 222 222 if ($template_code == $this->getTemplateName($device_type_id) 223 223 || $template_code == $this->getTemplateName($device_type_id, true)) { 224 $this->arrErr['err'] = t(' LC_Page_Admin_Design_Template_003');224 $this->arrErr['err'] = t('c_* The default template and template that is currently selected cannot be deleted<br />_01'); 225 225 return false; 226 226 } else { … … 230 230 array($template_code, $device_type_id)); 231 231 232 $error = t(' LC_Page_Admin_Design_Template_004');232 $error = t('c_* The template could not be deleted<br />_01'); 233 233 // テンプレート削除 234 234 $templates_dir = SMARTY_TEMPLATES_REALDIR . $template_code. '/'; … … 271 271 $tpl_dir = USER_TEMPLATE_REALDIR . $template_code . '/'; 272 272 if (!is_dir($tpl_dir)) { 273 $this->arrErr['err'] = t(' LC_Page_Admin_Design_Template_005', array('T_ARG1' => $tpl_dir));273 $this->arrErr['err'] = t('c_* T_ARG1 cannot be found.<br />_01', array('T_ARG1' => $tpl_dir)); 274 274 return false; 275 275 } … … 301 301 $to_dir = SMARTY_TEMPLATES_REALDIR . $template_code . '/_packages/'; 302 302 if (SC_Utils_Ex::recursiveMkdir($to_dir) === false) { 303 $this->arrErr['err'] = t(' LC_Page_Admin_Design_Template_006');303 $this->arrErr['err'] = t('c_* Directory creation failed<br />_01'); 304 304 return false; 305 305 } 306 306 SC_Utils_Ex::sfCopyDir($from_dir, $to_dir); 307 307 if (SC_Helper_FileManager_Ex::downloadArchiveFiles(SMARTY_TEMPLATES_REALDIR . $template_code, $template_code) === false) { 308 $this->arrErr['err'] = t(' LC_Page_Admin_Design_Template_007');308 $this->arrErr['err'] = t('c_* Archive file creation failed<br />_01'); 309 309 return false; 310 310 }
Note: See TracChangeset
for help on using the changeset viewer.