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

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
bjrambo committed Jan 21, 2016
2 parents 0855c70 + c4ce2e1 commit 45cfb40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion profiler.admin.controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ function procProfilerAdminDeleteTable()

function procProfilerAdminDeleteTablePiece()
{
$table_name = Context::get('table_name');
$vars = Context::getRequestVars();
$table_name = $vars->table_name;
$oDB = DB::getInstance();
$oDB->dropTable(substr($table_name, strlen($oDB->prefix)));

Expand Down
2 changes: 1 addition & 1 deletion tpl/table.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{@$enable_delete = TRUE}
{$lang->notuse}
</label>
<form cond="$table_info->to_be_deleted" class="x_inline" action="{getUrl('')}" mothod="post">
<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">
<input type="hidden" name="module" value="profiler" />
<input type="hidden" name="act" value="procProfilerAdminDeleteTablePiece" />
<input type="hidden" name="table_name" value="{$table_info->name}" />
Expand Down

0 comments on commit 45cfb40

Please sign in to comment.