Skip to content
This repository was archived by the owner on Feb 13, 2018. It is now read-only.

Commit 45cfb40

Browse files
committed
Merge branch 'develop'
2 parents 0855c70 + c4ce2e1 commit 45cfb40

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

profiler.admin.controller.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ function procProfilerAdminDeleteTable()
138138

139139
function procProfilerAdminDeleteTablePiece()
140140
{
141-
$table_name = Context::get('table_name');
141+
$vars = Context::getRequestVars();
142+
$table_name = $vars->table_name;
142143
$oDB = DB::getInstance();
143144
$oDB->dropTable(substr($table_name, strlen($oDB->prefix)));
144145

tpl/table.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
{@$enable_delete = TRUE}
2929
{$lang->notuse}
3030
</label>
31-
<form cond="$table_info->to_be_deleted" class="x_inline" action="{getUrl('')}" mothod="post">
31+
<form cond="$table_info->to_be_deleted" class="x_inline" action="{Context::getUrl('')}" method="post" onsubmit="if(!confirm('{$lang->msg_profiler_delete_table}')) return false">
3232
<input type="hidden" name="module" value="profiler" />
3333
<input type="hidden" name="act" value="procProfilerAdminDeleteTablePiece" />
3434
<input type="hidden" name="table_name" value="{$table_info->name}" />

0 commit comments

Comments
 (0)