Commit a5582168 by Carsten Brandt

debug toolbar: fixed display issue with phpinfo tables

fixes #6903
parent aef8fdff
......@@ -4,7 +4,7 @@ Yii Framework 2 debug extension Change Log
2.0.3 under development
-----------------------
- no changes in this release.
- Bug #6903: Fixed display issue with phpinfo() table (kalayda, cebe)
2.0.2 January 11, 2015
......
......@@ -73,7 +73,7 @@ class ConfigPanel extends Panel
$pinfo = ob_get_contents();
ob_end_clean();
$phpinfo = preg_replace('%^.*<body>(.*)</body>.*$%ms', '$1', $pinfo);
$phpinfo = str_replace('<table ', '<div class="table-responsive"><table class="table table-condensed table-bordered table-striped table-hover config-php-info-table"', $phpinfo);
$phpinfo = str_replace('<table', '<div class="table-responsive"><table class="table table-condensed table-bordered table-striped table-hover config-php-info-table" ', $phpinfo);
$phpinfo = str_replace('</table>', '</table></div>', $phpinfo);
return $phpinfo;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment