0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-03-15 05:44:49 +00:00

Move RebuildConfig.php from using XTemplate to using Smarty.

This commit is contained in:
Connor Shea 2019-10-09 12:47:43 -06:00
parent c715b66794
commit 2a577d5f5f
2 changed files with 27 additions and 29 deletions
modules/Administration

View file

@ -79,11 +79,10 @@ if (!empty($_POST['perform_rebuild']) && $config_file_ready) {
/////////////////////////////////////////////////////////////////////
// TEMPLATE ASSIGNING
$xtpl = new XTemplate('modules/Administration/RebuildConfig.html');
$xtpl->assign('LBL_CONFIG_CHECK', $mod_strings['LBL_CONFIG_CHECK']);
$xtpl->assign('CONFIG_CHECK', $config_check);
$xtpl->assign('LBL_PERFORM_REBUILD', $lbl_rebuild_config);
$xtpl->assign('DISABLE_CONFIG_REBUILD', $disable_config_rebuild);
$xtpl->assign('BTN_PERFORM_REBUILD', $btn_rebuild_config);
$xtpl->parse('main');
$xtpl->out('main');
$smarty = new Sugar_Smarty();
$smarty->assign('LBL_CONFIG_CHECK', $mod_strings['LBL_CONFIG_CHECK']);
$smarty->assign('CONFIG_CHECK', $config_check);
$smarty->assign('LBL_PERFORM_REBUILD', $lbl_rebuild_config);
$smarty->assign('DISABLE_CONFIG_REBUILD', $disable_config_rebuild);
$smarty->assign('BTN_PERFORM_REBUILD', $btn_rebuild_config);
$smarty->display('modules/Administration/templates/RebuildConfig.tpl');

View file

@ -1,4 +1,4 @@
<!--
{*
/**
*
* SugarCRM Community Edition is a customer relationship management program developed by
@ -37,26 +37,25 @@
* reasonably feasible for technical reasons, the Appropriate Legal Notices must
* display the words "Powered by SugarCRM" and "Supercharged by SuiteCRM".
*/
*}
-->
<!-- BEGIN: main -->
<p>
<form name="RebuildConfig" method="post" action="index.php">
<input type="hidden" name="module" value="Administration">
<input type="hidden" name="action" value="RebuildConfig">
<input type="hidden" name="return_module" value="Administration">
<input type="hidden" name="return_action" value="RebuildConfig">
<input type="hidden" name="perform_rebuild" value="true">
<table cellspacing="{CELLSPACING}" class="other view">
<tr>
<td width="20%" scope="row">{LBL_CONFIG_CHECK}</td>
<td>{CONFIG_CHECK}</td>
</tr>
<tr>
<td scope="row">{LBL_PERFORM_REBUILD}</td>
<td><input type="submit" name="button" {DISABLE_CONFIG_REBUILD} value="{BTN_PERFORM_REBUILD}"></td>
</tr>
</table>
</form>
<form name="RebuildConfig" method="post" action="index.php">
<input type="hidden" name="module" value="Administration">
<input type="hidden" name="action" value="RebuildConfig">
<input type="hidden" name="return_module" value="Administration">
<input type="hidden" name="return_action" value="RebuildConfig">
<input type="hidden" name="perform_rebuild" value="true">
<table cellspacing="{$CELLSPACING}" class="other view">
<tr>
<td width="20%" scope="row">{$LBL_CONFIG_CHECK}</td>
<td>{$CONFIG_CHECK}</td>
</tr>
<tr>
<td scope="row">{$LBL_PERFORM_REBUILD}</td>
<td><input type="submit" name="button" {$DISABLE_CONFIG_REBUILD} value="{$BTN_PERFORM_REBUILD}"></td>
</tr>
</table>
</form>
</p>
<!-- END: main -->