diff --git a/lib/Cake/View/Elements/sql_dump.ctp b/lib/Cake/View/Elements/sql_dump.ctp index 59aeca8e6..5623a58cf 100644 --- a/lib/Cake/View/Elements/sql_dump.ctp +++ b/lib/Cake/View/Elements/sql_dump.ctp @@ -58,19 +58,27 @@ if ($noLogs || isset($_forced_from_dbo_)): } foreach ($i['params'] as $bindKey => $bindVal) { if ($bindType === true) { - $bindParam .= h($bindKey) ." => " . h($bindVal) . ", "; + $bindParam .= h($bindKey) . " => " . h($bindVal) . ", "; } else { $bindParam .= h($bindVal) . ", "; } } $i['query'] .= " , params[ " . rtrim($bindParam, ', ') . " ]"; } - echo "" . ($k + 1) . "" . h($i['query']) . "{$i['error']}{$i['affected']}{$i['numRows']}{$i['took']}\n"; + printf('%d%s%s%d%d%d%s', + $k + 1, + h($i['query']), + $i['error'], + $i['affected'], + $i['numRows'], + $i['took'], + "\n" + ); endforeach; ?> Encountered unexpected $logs cannot generate SQL log

'; + printf('

%s

', __d('cake_dev', 'Encountered unexpected %s. Cannot generate SQL log.', '$logs')); endif;