From: Sascha Greuel Date: Tue, 27 May 2014 17:21:44 +0000 (+0200) Subject: Fixed display X-Git-Tag: 2.1.0_Alpha_1~711^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f89a9540ac39c80134c721554d08fa60ed43a891;p=GitHub%2FWoltLab%2FWCF.git Fixed display Since wordwrapping isn't possible for disable_functions and disable_classes, it produces an oneliner, which may break the whole layout. --- diff --git a/wcfsetup/install/files/lib/acp/page/PHPInfoPage.class.php b/wcfsetup/install/files/lib/acp/page/PHPInfoPage.class.php index 0ad48542d7..abbc594b0e 100644 --- a/wcfsetup/install/files/lib/acp/page/PHPInfoPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PHPInfoPage.class.php @@ -48,6 +48,15 @@ class PHPInfoPage extends AbstractPage { $info = preg_replace('%%', '
', $info); $info = str_replace('
', '', $info); + // fix display of disable_functions & disable_classes + $info = preg_replace_callback('%disable_(?Pfunctions|classes)(?P.*?)(?P.*?)%s', function ($match) { + $ret = 'disable_' . $match['t'] . ''; + $ret .= '' . str_replace(' ', ', ', rtrim(wordwrap(str_replace(',', ' ', $match['l'])))) . ''; + $ret .= '' . str_replace(' ', ', ', rtrim(wordwrap(str_replace(',', ' ', $match['m'])))) . ''; + + return $ret; + }, $info); + WCF::getTPL()->assign(array( 'phpInfo' => $info ));