Adding a workaround to DboSource::showLog() to work around fix added in [da9c0da626].

Also adding explanation message when logs are not generated.
This commit is contained in:
mark_story 2010-08-26 21:24:09 -04:00
parent 123873b4d8
commit ea9e30890f
2 changed files with 8 additions and 4 deletions

View file

@ -630,7 +630,7 @@ class DboSource extends DataSource {
$controller = null;
$View =& new View($controller, false);
$View->set('logs', array($this->configKeyName => $log));
echo $View->element('sql_dump');
echo $View->element('sql_dump', array('_forced_from_dbo_' => true));
} else {
foreach ($log['log'] as $k => $i) {
print (($k + 1) . ". {$i['query']} {$i['error']}\n");