debug toolbar: fixed display issue with phpinfo tables

fixes #6903
This commit is contained in:
Carsten Brandt
2015-01-18 19:38:18 +01:00
parent aef8fdffde
commit a558216897
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;
}