mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 03:16:11 +01:00
Use $grav->exit() instead of exit()
This commit is contained in:
@@ -1145,8 +1145,7 @@ class Admin
|
||||
if (function_exists('phpinfo')) {
|
||||
ob_start();
|
||||
phpinfo();
|
||||
$pinfo = ob_get_contents();
|
||||
ob_end_clean();
|
||||
$pinfo = ob_get_clean();
|
||||
|
||||
$pinfo = preg_replace('%^.*<body>(.*)</body>.*$%ms', '$1', $pinfo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user