1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-31 02:10:37 +02:00

BackupPlugin: fixes

This commit is contained in:
Awilum
2012-12-09 19:31:32 +02:00
parent c3556cf506
commit 2ecf705154
2 changed files with 3 additions and 3 deletions

View File

@@ -45,7 +45,7 @@
// Delete backup
// -------------------------------------
if (Request::get('sub_id') == 'backup' && Request::get('delete_file')) {
if (Request::get('id') == 'backup' && Request::get('delete_file')) {
if (Security::check(Request::get('token'))) {

View File

@@ -14,7 +14,7 @@ $().ready(function(){$('[name=create_backup]').click(function(){$(this).button('
Form::checkbox('add_storage_folder', null, true, array('disabled' => 'disabled')) . ' ' . __('storage', 'backup') . ' ' . Html::nbsp(2) .
Form::checkbox('add_public_folder') . ' ' . __('public', 'backup') . ' ' . Html::nbsp(2) .
Form::checkbox('add_plugins_folder') . ' ' . __('plugins', 'backup') . ' ' . Html::nbsp(2) .
Form::submit('create_backup', __('Create backup', 'backup'), array('class' => 'btn default btn-small', 'data-loading-text' => __('Creating...', 'backup'))).
Form::submit('create_backup', __('Create backup', 'backup'), array('class' => 'btn btn-small', 'data-loading-text' => __('Creating...', 'backup'))).
Form::close()
);
?>
@@ -38,7 +38,7 @@ $().ready(function(){$('[name=create_backup]').click(function(){$(this).button('
<td><?php echo Number::byteFormat(filesize(ROOT . DS . 'backups' . DS . $backup)); ?></td>
<td>
<?php echo Html::anchor(__('Delete', 'backup'),
'index.php?id=system&sub_id=backup&delete_file='.$backup.'&token='.Security::token(),
'index.php?id=backup&delete_file='.$backup.'&token='.Security::token(),
array('class' => 'btn btn-actions', 'onclick' => "return confirmDelete('".__('Delete backup: :backup', 'backup', array(':backup' => Date::format($name, 'F jS, Y - g:i A')))."')"));
?>
</td>