@@ -28,7 +28,8 @@ discard block |
||
| 28 | 28 | <div id="pqp-console" class="pqp-box"> |
| 29 | 29 | <?php if (count($output['console']) == 0): ?> |
| 30 | 30 | <h3>This panel has no log items.</h3> |
| 31 | - <?php else: ?> |
|
| 31 | + <?php else { |
|
| 32 | + : ?> |
|
| 32 | 33 | <table class="side" cellspacing="0"> |
| 33 | 34 | <tr> |
| 34 | 35 | <td class="alt1"> |
@@ -64,7 +65,9 @@ discard block |
||
| 64 | 65 | <pre><?php echo $log['data'] ?></pre> |
| 65 | 66 | <?php if (!empty($log['data_type'])): ?> |
| 66 | 67 | <em><?php echo $log['data_type'] ?></em> |
| 67 | - <?php endif; ?> |
|
| 68 | + <?php endif; |
|
| 69 | +} |
|
| 70 | +?> |
|
| 68 | 71 | <?php echo $log['name'] ?> |
| 69 | 72 | </div> |
| 70 | 73 | <?php elseif ($log['type'] == 'speed'): ?> |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | ) |
| 48 | 48 | ); |
| 49 | 49 | foreach ($console->getLogs() as $log) { |
| 50 | - switch($log['type']) { |
|
| 50 | + switch ($log['type']) { |
|
| 51 | 51 | case 'log': |
| 52 | 52 | $message = array( |
| 53 | 53 | 'data' => print_r($log['data'], true), |
@@ -227,9 +227,9 @@ discard block |
||
| 227 | 227 | { |
| 228 | 228 | $output = $this->output; |
| 229 | 229 | // todo is this really the best way to load these? |
| 230 | - $styles = file_get_contents(__DIR__ . "./../{$this->options['style_path']}"); |
|
| 231 | - $script = file_get_contents(__DIR__ . "./../{$this->options['script_path']}"); |
|
| 230 | + $styles = file_get_contents(__DIR__."./../{$this->options['style_path']}"); |
|
| 231 | + $script = file_get_contents(__DIR__."./../{$this->options['script_path']}"); |
|
| 232 | 232 | |
| 233 | - require_once __DIR__ .'/../asset/display.tpl.php'; |
|
| 233 | + require_once __DIR__.'/../asset/display.tpl.php'; |
|
| 234 | 234 | } |
| 235 | 235 | } |