Permalink
Browse files

replace deprecated function XCube_Utils::formatMessage to ::formatString

  • Loading branch information...
nao-pon committed Apr 20, 2015
1 parent e243232 commit 73260339861ce8e6aa5d2acd56b8a07023c58986
Showing with 84 additions and 84 deletions.
  1. +13 −13 extras/extra_modules/html/modules/XUpgrade/admin/class/UpgradeProcessor.class.php
  2. +1 −1 html/modules/legacy/actions/MiscSslloginAction.class.php
  3. +4 −4 html/modules/legacy/admin/actions/ImageUploadAction.class.php
  4. +3 −3 html/modules/legacy/admin/actions/SmilesUploadAction.class.php
  5. +24 −24 html/modules/legacy/admin/class/ModuleInstallUtils.class.php
  6. +4 −4 html/modules/legacy/admin/class/ModuleInstaller.class.php
  7. +7 −7 html/modules/legacy/admin/class/ModuleUninstaller.class.php
  8. +2 −2 html/modules/legacy/admin/class/ModuleUpdater.class.php
  9. +1 −1 html/modules/legacy/admin/forms/BlockEditForm.class.php
  10. +1 −1 html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php
  11. +2 −2 html/modules/legacy/forms/ImageUploadForm.class.php
  12. +1 −1 html/modules/legacy/kernel/Legacy_Controller.class.php
  13. +2 −2 html/modules/legacy/preload/InstallerChecker.class.php
  14. +4 −4 html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php
  15. +3 −3 html/modules/legacyRender/admin/forms/BannerAdminEditForm.class.php
  16. +1 −1 html/modules/legacyRender/admin/forms/BannerclientAdminEditForm.class.php
  17. +1 −1 html/modules/message/admin/class/myUpdater.class.php
  18. +3 −3 html/modules/user/admin/actions/AvatarUploadAction.class.php
  19. +1 −1 html/modules/user/admin/forms/MailjobAdminEditForm.class.php
  20. +4 −4 html/modules/user/admin/forms/UserAdminEditForm.class.php
  21. +2 −2 html/modules/user/forms/AbstractUserEditForm.class.php
@@ -178,20 +178,20 @@ function _portConfigs()
$category =& $handler->get(XOOPS_CONF_USER);
if (is_object($category)) {
if ($handler->delete($category)) {
$this->mLog->add(XCube_Utils::formatMessage(_MI_XUPGRADE_MESSAGE_DELETED_CATEGORY, _MI_XUPGRADE_LANG_USER_CATEGORY));
$this->mLog->add(XCube_Utils::formatString(_MI_XUPGRADE_MESSAGE_DELETED_CATEGORY, _MI_XUPGRADE_LANG_USER_CATEGORY));
}
else {
$this->mLog->addError(XCube_Utils::formatMessage(_MI_XUPGRADE_ERROR_DELETED_CATEGORY, _MI_XUPGRADE_LANG_USER_CATEGORY));
$this->mLog->addError(XCube_Utils::formatString(_MI_XUPGRADE_ERROR_DELETED_CATEGORY, _MI_XUPGRADE_LANG_USER_CATEGORY));
}
}
$category =& $handler->get(XOOPS_CONF_METAFOOTER);
if (is_object($category)) {
if ($handler->delete($category)) {
$this->mLog->add(XCube_Utils::formatMessage(_MI_XUPGRADE_MESSAGE_DELETED_CATEGORY, _MI_XUPGRADE_LANG_METEFOOTER_CATEGORY));
$this->mLog->add(XCube_Utils::formatString(_MI_XUPGRADE_MESSAGE_DELETED_CATEGORY, _MI_XUPGRADE_LANG_METEFOOTER_CATEGORY));
}
else {
$this->mLog->addError(XCube_Utils::formatMessage(_MI_XUPGRADE_ERROR_DELETED_CATEGORY, _MI_XUPGRADE_LANG_METEFOOTER_CATEGORY));
$this->mLog->addError(XCube_Utils::formatString(_MI_XUPGRADE_ERROR_DELETED_CATEGORY, _MI_XUPGRADE_LANG_METEFOOTER_CATEGORY));
}
}
}
@@ -245,10 +245,10 @@ function _portTemplates()
$desc_tplfileArr[$key]->Source->set('tpl_source', $src_tplfile->Source->get('tpl_source'));
if ($handler->insert($desc_tplfileArr[$key])) {
$this->mLog->add(XCube_Utils::formatMessage(_MI_XUPGRADE_MESSAGE_PORTED_TEMPLATE, $src_tplfile->get('tpl_file'), $src_tplfile->get('tpl_tplset')));
$this->mLog->add(XCube_Utils::formatString(_MI_XUPGRADE_MESSAGE_PORTED_TEMPLATE, $src_tplfile->get('tpl_file'), $src_tplfile->get('tpl_tplset')));
}
else {
$this->mLog->add(XCube_Utils::formatMessage(_MI_XUPGRADE_ERROR_PORTED_TEMPLATE, $src_tplfile->get('tpl_file'), $src_tplfile->get('tpl_tplset')));
$this->mLog->add(XCube_Utils::formatString(_MI_XUPGRADE_ERROR_PORTED_TEMPLATE, $src_tplfile->get('tpl_file'), $src_tplfile->get('tpl_tplset')));
}
}
}
@@ -316,7 +316,7 @@ function &_getCubeConfigs($dirname)
function _copy(&$oldConfig, &$cubeConfig, $dirname)
{
if (!is_object($oldConfig) || !is_object($cubeConfig)) {
$this->mLog->addError(XCube_Utils::formatMessage(_MI_XUPGRADE_ERROR_CONFIGS_WRONG));
$this->mLog->addError(XCube_Utils::formatString(_MI_XUPGRADE_ERROR_CONFIGS_WRONG));
return;
}
@@ -326,17 +326,17 @@ function _copy(&$oldConfig, &$cubeConfig, $dirname)
}
$cubeConfig->setConfValueForInput($value);
if ($this->mConfigHandler->insertConfig($cubeConfig)) {
$this->mLog->add(XCube_Utils::formatMessage(_MI_XUPGRADE_MESSAGE_PORTED_CONFIG, $cubeConfig->get('conf_name'), 'user'));
$this->mLog->add(XCube_Utils::formatString(_MI_XUPGRADE_MESSAGE_PORTED_CONFIG, $cubeConfig->get('conf_name'), 'user'));
}
else {
$this->mLog->addError(XCube_Utils::formatMessage(_MI_XUPGRADE_ERROR_PORTED_CONFIG, $cubeConfig->get('conf_name'), 'user'));
$this->mLog->addError(XCube_Utils::formatString(_MI_XUPGRADE_ERROR_PORTED_CONFIG, $cubeConfig->get('conf_name'), 'user'));
}
if ($this->mConfigHandler->deleteConfig($oldConfig)) {
$this->mLog->add(XCube_Utils::formatMessage(_MI_XUPGRADE_MESSAGE_DELETED_CONFIG, $oldConfig->get('conf_name')));
$this->mLog->add(XCube_Utils::formatString(_MI_XUPGRADE_MESSAGE_DELETED_CONFIG, $oldConfig->get('conf_name')));
}
else {
$this->mLog->addError(XCube_Utils::formatMessage(_MI_XUPGRADE_ERROR_DELETED_CONFIG, $oldConfig->get('conf_name')));
$this->mLog->addError(XCube_Utils::formatString(_MI_XUPGRADE_ERROR_DELETED_CONFIG, $oldConfig->get('conf_name')));
}
}
@@ -358,7 +358,7 @@ function _fullCopy(&$oldConfigs, &$cubeConfigs, $dirname)
$this->_copy($oldConfigs[$key], $cubeConfigs[$key], $dirname);
}
else {
$this->mLog->addError(XCube_Utils::formatMessage(_MI_XUPGRADE_ERROR_FIND_CONFIG, $key, 'user'));
$this->mLog->addError(XCube_Utils::formatString(_MI_XUPGRADE_ERROR_FIND_CONFIG, $key, 'user'));
}
}
}
@@ -374,7 +374,7 @@ function _adjustModules()
foreach ($modules as $module) {
$module->set('isactive', 1);
$handler->insert($module);
$log->add(XCube_Utils::formatMessage(_MI_XUPGRADE_MESSAGE_ADJUST_MODULE_ISACTIVE, $module->get('dirname')));
$log->add(XCube_Utils::formatString(_MI_XUPGRADE_MESSAGE_ADJUST_MODULE_ISACTIVE, $module->get('dirname')));
}
}
}
@@ -37,7 +37,7 @@ function executeViewIndex(&$controller, &$xoopsUser, &$render)
}
$render->setTemplateName("legacy_misc_ssllogin.html");
$render->setAttribute("message", XCube_Utils::formatMessage(_MD_LEGACY_MESSAGE_LOGIN_SUCCESS, $xoopsUser->get('uname')));
$render->setAttribute("message", XCube_Utils::formatString(_MD_LEGACY_MESSAGE_LOGIN_SUCCESS, $xoopsUser->get('uname')));
}
}
@@ -133,11 +133,11 @@ function _saveTargetImages(&$targetimages, $t_imgcat_id)
$save_file_name = uniqid( 'img' ) . '.' . $ext ;
$filehandle = fopen( XOOPS_UPLOAD_PATH.'/'.$save_file_name , "w" ) ;
if( ! $filehandle ) {
$this->_addErrorMessage(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_SAVE_IMAGE_FILE, $file_name));
$this->_addErrorMessage(XCube_Utils::formatString(_AD_LEGACY_ERROR_COULD_NOT_SAVE_IMAGE_FILE, $file_name));
continue ;
}
if ( !@fwrite($filehandle, $targetimages[$i]['content']) ) {
$this->_addErrorMessage(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_SAVE_IMAGE_FILE, $file_name));
$this->_addErrorMessage(XCube_Utils::formatString(_AD_LEGACY_ERROR_COULD_NOT_SAVE_IMAGE_FILE, $file_name));
@fclose( $filehandle ) ;
continue;
};
@@ -151,7 +151,7 @@ function _saveTargetImages(&$targetimages, $t_imgcat_id)
$image->set('imgcat_id', $t_imgcat_id);
if (!$imagehandler->insert($image)) {
$this->_addErrorMessage(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_SAVE_IMAGE_FILE, $file_name));
$this->_addErrorMessage(XCube_Utils::formatString(_AD_LEGACY_ERROR_COULD_NOT_SAVE_IMAGE_FILE, $file_name));
}
unset($image);
} //end of for
@@ -178,7 +178,7 @@ function _saveTargetImages(&$targetimages, $t_imgcat_id)
$image->mImageBody->set('image_body', $targetimages[$i]['content']);
if (!$imagehandler->insert($image)) {
$this->_addErrorMessage(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_SAVE_IMAGE_FILE, $file_name));
$this->_addErrorMessage(XCube_Utils::formatString(_AD_LEGACY_ERROR_COULD_NOT_SAVE_IMAGE_FILE, $file_name));
}
unset($image);
} //end of for
@@ -126,11 +126,11 @@ function _saveSmilesImages(&$smilesimages)
$save_file_name = uniqid( 'smil' ) . '.' . $ext ;
$filehandle = fopen( XOOPS_UPLOAD_PATH.'/'.$save_file_name , "w" ) ;
if( ! $filehandle ) {
$this->_addErrorMessage(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_SAVE_SMILES_FILE, $file_name));
$this->_addErrorMessage(XCube_Utils::formatString(_AD_LEGACY_ERROR_COULD_NOT_SAVE_SMILES_FILE, $file_name));
continue ;
}
if ( !@fwrite($filehandle, $smilesimages[$i]['content']) ) {
$this->_addErrorMessage(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_SAVE_SMILES_FILE, $file_name));
$this->_addErrorMessage(XCube_Utils::formatString(_AD_LEGACY_ERROR_COULD_NOT_SAVE_SMILES_FILE, $file_name));
@fclose( $filehandle ) ;
continue;
};
@@ -143,7 +143,7 @@ function _saveSmilesImages(&$smilesimages)
$smiles->set('display', 1);
if (!$smileshandler->insert($smiles)) {
$this->_addErrorMessage(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_SAVE_SMILES_FILE, $file_name));
$this->_addErrorMessage(XCube_Utils::formatString(_AD_LEGACY_ERROR_COULD_NOT_SAVE_SMILES_FILE, $file_name));
}
unset($smiles);
}
@@ -174,7 +174,7 @@ function installSQLAutomatically(&$module, &$log)
$scanner->setDirname($module->get('dirname'));
if (!$scanner->loadFile($sqlfilepath)) {
$log->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_SQL_FILE_NOT_FOUND, $sqlfile));
$log->addError(XCube_Utils::formatString(_AD_LEGACY_ERROR_SQL_FILE_NOT_FOUND, $sqlfile));
return false;
}
@@ -322,10 +322,10 @@ function installModuleTemplate($module, $template, &$log)
$tplfile->setVar('tpl_desc', $description, true);
if ($tplHandler->insert($tplfile)) {
$log->addReport(XCube_Utils::formatMessage(_AD_LEGACY_MESSAGE_TEMPLATE_INSTALLED, $fileName));
$log->addReport(XCube_Utils::formatString(_AD_LEGACY_MESSAGE_TEMPLATE_INSTALLED, $fileName));
}
else {
$log->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_INSTALL_TEMPLATE, $fileName));
$log->addError(XCube_Utils::formatString(_AD_LEGACY_ERROR_COULD_NOT_INSTALL_TEMPLATE, $fileName));
return false;
}
}
@@ -369,7 +369,7 @@ function _uninstallAllOfModuleTemplates(&$module, $tplset, &$log)
foreach ($delTemplates as $tpl) {
if (!$tplHandler->delete($tpl)) {
$log->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_TEMPLATE_UNINSTALLED, $tpl->get('tpl_file')));
$log->addError(XCube_Utils::formatString(_AD_LEGACY_ERROR_TEMPLATE_UNINSTALLED, $tpl->get('tpl_file')));
}
}
}
@@ -548,12 +548,12 @@ function installBlock(&$module, &$blockObj, &$block, &$log)
$autolink = true;
}
if (!$blockHandler->insert($blockObj, $autolink)) {
$log->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_INSTALL_BLOCK, $blockObj->getVar('name')));
$log->addError(XCube_Utils::formatString(_AD_LEGACY_ERROR_COULD_NOT_INSTALL_BLOCK, $blockObj->getVar('name')));
return false;
}
else {
$log->addReport(XCube_Utils::formatMessage(_AD_LEGACY_MESSAGE_BLOCK_INSTALLED, $blockObj->getVar('name')));
$log->addReport(XCube_Utils::formatString(_AD_LEGACY_MESSAGE_BLOCK_INSTALLED, $blockObj->getVar('name')));
$tplHandler =& xoops_gethandler('tplfile');
@@ -566,7 +566,7 @@ function installBlock(&$module, &$blockObj, &$block, &$log)
if (!empty($block['show_all_module'])) {
$link_sql = "INSERT INTO " . $blockHandler->db->prefix('block_module_link') . " (block_id, module_id) VALUES (".$blockObj->getVar('bid').", 0)";
if (!$blockHandler->db->query($link_sql)) {
$log->addWarning(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_SET_LINK, $blockObj->getVar('name')));
$log->addWarning(XCube_Utils::formatString(_AD_LEGACY_ERROR_COULD_NOT_SET_LINK, $blockObj->getVar('name')));
}
}
$gpermHandler =& xoops_gethandler('groupperm');
@@ -582,7 +582,7 @@ function installBlock(&$module, &$blockObj, &$block, &$log)
$bperm->setVar('gperm_groupid', $group->getVar('groupid'));
$bperm->setNew();
if (!$gpermHandler->insert($bperm)) {
$log->addWarning(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_SET_BLOCK_PERMISSION, $blockObj->getVar('name')));
$log->addWarning(XCube_Utils::formatString(_AD_LEGACY_ERROR_COULD_NOT_SET_BLOCK_PERMISSION, $blockObj->getVar('name')));
}
}
} else {
@@ -592,7 +592,7 @@ function installBlock(&$module, &$blockObj, &$block, &$log)
$bperm->setVar('gperm_groupid', $mygroup);
$bperm->setNew();
if (!$gpermHandler->insert($bperm)) {
$log->addWarning(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_SET_BLOCK_PERMISSION, $blockObj->getVar('name')));
$log->addWarning(XCube_Utils::formatString(_AD_LEGACY_ERROR_COULD_NOT_SET_BLOCK_PERMISSION, $blockObj->getVar('name')));
}
}
}
@@ -616,7 +616,7 @@ function uninstallBlock(&$block, &$log)
{
$blockHandler =& xoops_gethandler('block');
$blockHandler->delete($block);
$log->addReport(XCube_Utils::formatMessage(_AD_LEGACY_MESSAGE_UNINSTALLATION_BLOCK_SUCCESSFUL, $block->get('name')));
$log->addReport(XCube_Utils::formatString(_AD_LEGACY_MESSAGE_UNINSTALLATION_BLOCK_SUCCESSFUL, $block->get('name')));
//
// Deletes permissions
@@ -668,11 +668,11 @@ function installBlockTemplate(&$block, &$module, &$log)
$tplfile->set('tpl_lastmodified', time());
if ($tplHandler->insert($tplfile)) {
$log->addReport(XCube_Utils::formatMessage(_AD_LEGACY_MESSAGE_BLOCK_TEMPLATE_INSTALLED, $block->get('template')));
$log->addReport(XCube_Utils::formatString(_AD_LEGACY_MESSAGE_BLOCK_TEMPLATE_INSTALLED, $block->get('template')));
return true;
}
else {
$log->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_BLOCK_TEMPLATE_INSTALL, $block->get('name')));
$log->addError(XCube_Utils::formatString(_AD_LEGACY_ERROR_BLOCK_TEMPLATE_INSTALL, $block->get('name')));
return false;
}
}
@@ -768,10 +768,10 @@ function installPreferenceByInfo(&$info, &$module, &$log)
}
if ($handler->insertConfig($config)) {
$log->addReport(XCube_Utils::formatMessage(_AD_LEGACY_MESSAGE_INSERT_CONFIG, $config->get('conf_name')));
$log->addReport(XCube_Utils::formatString(_AD_LEGACY_MESSAGE_INSERT_CONFIG, $config->get('conf_name')));
}
else {
$log->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_INSERT_CONFIG, $config->get('conf_name')));
$log->addError(XCube_Utils::formatString(_AD_LEGACY_ERROR_COULD_NOT_INSERT_CONFIG, $config->get('conf_name')));
}
}
@@ -1034,10 +1034,10 @@ function updateBlockByInfo(&$info, &$module, &$log)
$blockArr[$idx]->set('template', $info->mTemplate);
if ($handler->insert($blockArr[$idx])) {
$log->addReport(XCube_Utils::formatMessage('Update {0} block successfully.', $blockArr[$idx]->get('name')));
$log->addReport(XCube_Utils::formatString('Update {0} block successfully.', $blockArr[$idx]->get('name')));
}
else {
$log->addError(XCube_Utils::formatMessage('Could not update {0} block.', $blockArr[$idx]->get('name')));
$log->addError(XCube_Utils::formatString('Could not update {0} block.', $blockArr[$idx]->get('name')));
}
Legacy_ModuleInstallUtils::clearBlockTemplateForUpdate($blockArr[$idx], $module, $log);
@@ -1110,10 +1110,10 @@ function updatePreferenceByInfo(&$info, &$module, &$log)
}
if ($handler->insertConfig($config)) {
$log->addReport(XCube_Utils::formatMessage("Preference '{0}' is updateded.", $config->get('conf_name')));
$log->addReport(XCube_Utils::formatString("Preference '{0}' is updateded.", $config->get('conf_name')));
}
else {
$log->addError(XCube_Utils::formatMessage("Could not update preference '{0}'.", $config->get('conf_name')));
$log->addError(XCube_Utils::formatString("Could not update preference '{0}'.", $config->get('conf_name')));
}
}
@@ -1138,7 +1138,7 @@ function updatePreferenceOrderByInfo(&$info, &$module, &$log)
$config->set('conf_order', $info->mOrder);
if (!$handler->insertConfig($config)) {
$log->addError(XCube_Utils::formatMessage("Could not update the order of preference '{0}'.", $config->get('conf_name')));
$log->addError(XCube_Utils::formatString("Could not update the order of preference '{0}'.", $config->get('conf_name')));
}
}
@@ -1161,11 +1161,11 @@ function installBlockByInfo(&$info, &$module, &$log)
$block->set('c_type', 1);
if (!$handler->insert($block)) {
$log->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_INSTALL_BLOCK, $block->get('name')));
$log->addError(XCube_Utils::formatString(_AD_LEGACY_ERROR_COULD_NOT_INSTALL_BLOCK, $block->get('name')));
return false;
}
else {
$log->addReport(XCube_Utils::formatMessage(_AD_LEGACY_MESSAGE_BLOCK_INSTALLED, $block->get('name')));
$log->addReport(XCube_Utils::formatString(_AD_LEGACY_MESSAGE_BLOCK_INSTALLED, $block->get('name')));
Legacy_ModuleInstallUtils::installBlockTemplate($block, $module, $log);
@@ -1187,7 +1187,7 @@ function uninstallBlockByFuncNum($func_num, &$module, &$log)
$blockArr =& $handler->getObjects($criteria);
foreach (array_keys($blockArr) as $idx) {
if ($handler->delete($blockArr[$idx])) {
$log->addReport(XCube_Utils::formatMessage(_AD_LEGACY_MESSAGE_UNINSTALLATION_BLOCK_SUCCESSFUL, $blockArr[$idx]->get('name')));
$log->addReport(XCube_Utils::formatString(_AD_LEGACY_MESSAGE_UNINSTALLATION_BLOCK_SUCCESSFUL, $blockArr[$idx]->get('name')));
}
else {
// Uninstall fail
@@ -1253,10 +1253,10 @@ function uninstallPreferenceByOrder($order, &$module, &$log)
foreach (array_keys($configArr) as $idx) {
if ($handler->deleteConfig($configArr[$idx])) {
$log->addReport(XCube_Utils::formatMessage("Delete preference '{0}'.", $configArr[$idx]->get('conf_name')));
$log->addReport(XCube_Utils::formatString("Delete preference '{0}'.", $configArr[$idx]->get('conf_name')));
}
else {
$log->addError(XCube_Utils::formatMessage("Could not delete preference '{0}'.", $configArr[$idx]->get('conf_name')));
$log->addError(XCube_Utils::formatString("Could not delete preference '{0}'.", $configArr[$idx]->get('conf_name')));
}
}
}
@@ -196,7 +196,7 @@ function _processScript()
$funcName = 'xoops_module_install_' . $this->_mXoopsModule->get('dirname');
if (!preg_match("/^[a-zA-Z_][a-zA-Z0-9_]*$/", $funcName)) {
$this->mLog->addError(XCUbe_Utils::formatMessage(_AD_LEGACY_ERROR_FAILED_TO_EXECUTE_CALLBACK, $funcName));
$this->mLog->addError(XCube_Utils::formatString(_AD_LEGACY_ERROR_FAILED_TO_EXECUTE_CALLBACK, $funcName));
return;
}
@@ -206,7 +206,7 @@ function _processScript()
$result = $funcName($this->_mXoopsModule, new XCube_Ref($this->mLog));
if (!$result) {
$this->mLog->addError(XCUbe_Utils::formatMessage(_AD_LEGACY_ERROR_FAILED_TO_EXECUTE_CALLBACK, $funcName));
$this->mLog->addError(XCube_Utils::formatString(_AD_LEGACY_ERROR_FAILED_TO_EXECUTE_CALLBACK, $funcName));
}
}
}
@@ -215,10 +215,10 @@ function _processScript()
function _processReport()
{
if (!$this->mLog->hasError()) {
$this->mLog->add(XCube_Utils::formatMessage(_AD_LEGACY_MESSAGE_INSTALLATION_MODULE_SUCCESSFUL, $this->_mXoopsModule->get('name')));
$this->mLog->add(XCube_Utils::formatString(_AD_LEGACY_MESSAGE_INSTALLATION_MODULE_SUCCESSFUL, $this->_mXoopsModule->get('name')));
}
else {
$this->mLog->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_INSTALLATION_MODULE_FAILURE, $this->_mXoopsModule->get('name')));
$this->mLog->addError(XCube_Utils::formatString(_AD_LEGACY_ERROR_INSTALLATION_MODULE_FAILURE, $this->_mXoopsModule->get('name')));
}
}
Oops, something went wrong.

0 comments on commit 7326033

Please sign in to comment.