mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 06:18:44 +02:00
N°3904 - Polishing: Backup
This commit is contained in:
@@ -393,7 +393,7 @@ try {
|
||||
$sEnvironment = addslashes(utils::GetCurrentEnvironment());
|
||||
|
||||
$oP->add_script(
|
||||
<<<JS
|
||||
<<<JS
|
||||
function LaunchBackupNow()
|
||||
{
|
||||
$('#backup_success').addClass('ibo-is-hidden');
|
||||
@@ -420,7 +420,7 @@ function LaunchBackupNow()
|
||||
{
|
||||
window.location.reload();
|
||||
}
|
||||
$('#waitbackup').modal('close');
|
||||
$('#waitbackup').dialog('close');
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -464,11 +464,11 @@ function LaunchRestoreNow(sBackupFile, sConfirmationMessage)
|
||||
$('#backup_success').html('$sRestoreDone');
|
||||
$('#backup_success').removeClass('ibo-is-hidden');
|
||||
}
|
||||
$('#waitrestore').modal('close');
|
||||
$('#waitrestore').dialog('close');
|
||||
});
|
||||
} else {
|
||||
$('button.restore').prop('disabled', true);
|
||||
$('#waitrestore').modal('close');
|
||||
$('#waitrestore').dialog('close');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -69,11 +69,11 @@ class Branding
|
||||
public static function GetLogoAbsoluteUrl($sType = self::DEFAULT_LOGO_TYPE)
|
||||
{
|
||||
$sDefaultLogoPath = static::$aLogoPaths[$sType]['default'];
|
||||
$sWorkingPath = APPROOT.'env-'.utils::GetCurrentEnvironment();
|
||||
$aThemeParameters = json_decode(@file_get_contents($sWorkingPath.'/branding/logos.json'), true);
|
||||
$sWorkingPath = APPROOT.'env-'.utils::GetCurrentEnvironment().'/';
|
||||
$aThemeParameters = json_decode(@file_get_contents($sWorkingPath.'branding/logos.json'), true);
|
||||
if ( isset( $aThemeParameters[$sType])) {
|
||||
$sCustomLogoPath = $aThemeParameters[$sType];
|
||||
if (file_exists(MODULESROOT.$sCustomLogoPath)) {
|
||||
if (file_exists($sWorkingPath.$sCustomLogoPath)) {
|
||||
return utils::GetAbsoluteUrlModulesRoot().$sCustomLogoPath.'?t='.utils::GetCacheBusterTimestamp();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user