diff --git a/core/modules/system/lib/Drupal/system/Controller/SystemInfoController.php b/core/modules/system/lib/Drupal/system/Controller/SystemInfoController.php index 7360769..41b8546 100644 --- a/core/modules/system/lib/Drupal/system/Controller/SystemInfoController.php +++ b/core/modules/system/lib/Drupal/system/Controller/SystemInfoController.php @@ -10,7 +10,7 @@ use Symfony\Component\HttpFoundation\Response; /** - * Returns responses for System routes. + * Returns responses for System Info routes. */ class SystemInfoController { @@ -23,8 +23,7 @@ class SystemInfoController { public function php() { ob_start(); phpinfo(); - $output = ob_get_contents(); - ob_end_clean(); + $output = ob_get_clean(); return new Response($output); } diff --git a/core/modules/system/system.routing.yml b/core/modules/system/system.routing.yml index 19b9fd8..c99c93a 100644 --- a/core/modules/system/system.routing.yml +++ b/core/modules/system/system.routing.yml @@ -75,7 +75,7 @@ system_site_maintenance_mode: _permission: 'administer site configuration' system_php: - pattern: '/admin/reports/status/php' + pattern: '/admin/reports/system/php' defaults: _controller: 'Drupal\system\Controller\SystemInfoController::php' requirements: