From f89a9540ac39c80134c721554d08fa60ed43a891 Mon Sep 17 00:00:00 2001 From: Sascha Greuel Date: Tue, 27 May 2014 19:21:44 +0200 Subject: [PATCH] Fixed display Since wordwrapping isn't possible for disable_functions and disable_classes, it produces an oneliner, which may break the whole layout. --- .../install/files/lib/acp/page/PHPInfoPage.class.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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 )); -- 2.20.1