| @@ 208-220 (lines=13) @@ | ||
| 205 | ||
| 206 | $queries = null; |
|
| 207 | ||
| 208 | if (is_object(Symphony::Database())) { |
|
| 209 | $debug = Symphony::Database()->debug(); |
|
| 210 | ||
| 211 | if (!empty($debug)) { |
|
| 212 | foreach ($debug as $query) { |
|
| 213 | $queries .= sprintf( |
|
| 214 | '<li><em>[%01.4f]</em><code> %s;</code> </li>', |
|
| 215 | (isset($query['execution_time']) ? $query['execution_time'] : null), |
|
| 216 | htmlspecialchars($query['query']) |
|
| 217 | ); |
|
| 218 | } |
|
| 219 | } |
|
| 220 | } |
|
| 221 | ||
| 222 | return self::renderHtml( |
|
| 223 | 'fatalerror.generic', |
|
| @@ 1079-1091 (lines=13) @@ | ||
| 1076 | ); |
|
| 1077 | } |
|
| 1078 | ||
| 1079 | if (is_object(Symphony::Database())) { |
|
| 1080 | $debug = Symphony::Database()->debug(); |
|
| 1081 | ||
| 1082 | if (!empty($debug)) { |
|
| 1083 | foreach ($debug as $query) { |
|
| 1084 | $queries .= sprintf( |
|
| 1085 | '<li><em>[%01.4f]</em><code> %s;</code> </li>', |
|
| 1086 | (isset($query['execution_time']) ? $query['execution_time'] : null), |
|
| 1087 | htmlspecialchars($query['query']) |
|
| 1088 | ); |
|
| 1089 | } |
|
| 1090 | } |
|
| 1091 | } |
|
| 1092 | ||
| 1093 | $html = sprintf( |
|
| 1094 | file_get_contents(self::getTemplate('fatalerror.database')), |
|