Page MenuHomePhabricator

D9311.diff
No OneTemporary

D9311.diff

diff --git a/src/aphront/console/plugin/DarkConsoleErrorLogPlugin.php b/src/aphront/console/plugin/DarkConsoleErrorLogPlugin.php
--- a/src/aphront/console/plugin/DarkConsoleErrorLogPlugin.php
+++ b/src/aphront/console/plugin/DarkConsoleErrorLogPlugin.php
@@ -99,58 +99,3 @@
));
}
}
-
-/*
- $data = $this->getData();
- if (!$data) {
- return
- <x:frag>
- <div class="mu">No errors.</div>
- </x:frag>;
- }
-
- $markup = <table class="LConsoleErrors" />;
- $alt = false;
- foreach ($data as $error) {
- $row = <tr class={$alt ? 'alt' : null} />;
-
- $text = $error['error'];
- $text = preg_replace('/\(in .* on line \d+\)$/', '', trim($text));
-
- $trace = $error['trace'];
- $trace = explode("\n", $trace);
- if (!$trace) {
- $trace = array('unknown@0@unknown');
- }
-
- foreach ($trace as $idx => $traceline) {
- list($file, $line, $where) = array_merge(
- explode('@', $traceline),
- array('?', '?', '?'));
- if ($where == 'DarkConsole->addError' ||
- $where == 'debug_rlog') {
- unset($trace[$idx]);
- }
- }
-
- $row->appendChild(<th rowspan={count($trace)}>{$text}</th>);
-
- foreach ($trace as $traceline) {
- list($file, $line, $where) = array_merge(
- explode('@', $traceline),
- array('?', '?', '?'));
- $row->appendChild(<td>{$file}:{$line}</td>);
- $row->appendChild(<td>{$where}()</td>);
- $markup->appendChild($row);
- $row = <tr class={$alt ? 'alt' : null} />;
- }
-
- $alt = !$alt;
- }
-
- return
- <x:frag>
- <h1>Errors</h1>
- <div class="LConsoleErrors">{$markup}</div>
- </x:frag>;
-*/

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 13, 2:09 PM (5 d, 13 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6708355
Default Alt Text
D9311.diff (1 KB)

Event Timeline