| @@ 163-175 (lines=13) @@ | ||
| 160 | ||
| 161 | $queries = null; |
|
| 162 | ||
| 163 | if (is_object(Symphony::Database())) { |
|
| 164 | $debug = Symphony::Database()->debug(); |
|
| 165 | ||
| 166 | if (!empty($debug)) { |
|
| 167 | foreach ($debug as $query) { |
|
| 168 | $queries .= sprintf( |
|
| 169 | '<li><em>[%01.4f]</em><code> %s;</code> </li>', |
|
| 170 | (isset($query['execution_time']) ? $query['execution_time'] : null), |
|
| 171 | htmlspecialchars($query['query']) |
|
| 172 | ); |
|
| 173 | } |
|
| 174 | } |
|
| 175 | } |
|
| 176 | ||
| 177 | return self::renderHtml( |
|
| 178 | 'fatalerror.generic', |
|
| @@ 1104-1116 (lines=13) @@ | ||
| 1101 | ); |
|
| 1102 | } |
|
| 1103 | ||
| 1104 | if (is_object(Symphony::Database())) { |
|
| 1105 | $debug = Symphony::Database()->debug(); |
|
| 1106 | ||
| 1107 | if (!empty($debug)) { |
|
| 1108 | foreach ($debug as $query) { |
|
| 1109 | $queries .= sprintf( |
|
| 1110 | '<li><em>[%01.4f]</em><code> %s;</code> </li>', |
|
| 1111 | (isset($query['execution_time']) ? $query['execution_time'] : null), |
|
| 1112 | htmlspecialchars($query['query']) |
|
| 1113 | ); |
|
| 1114 | } |
|
| 1115 | } |
|
| 1116 | } |
|
| 1117 | ||
| 1118 | $html = sprintf( |
|
| 1119 | file_get_contents(self::getTemplate('fatalerror.database')), |
|