Closed joomlapl-bot closed 7 months ago
PR w związku ze zmianą oryginału https://github.com/joomla/joomla-cms/pull/41209 Poniżej zmiany w oryginale:
PR w związku ze zmianą oryginału https://github.com/joomla/joomla-cms/pull/41209 Poniżej zmiany w oryginale:
Click to expand the diff!
```diff diff --git a/administrator/components/com_admin/src/Model/SysinfoModel.php b/administrator/components/com_admin/src/Model/SysinfoModel.php index d9c003651419a..580468afc950a 100644 --- a/administrator/components/com_admin/src/Model/SysinfoModel.php +++ b/administrator/components/com_admin/src/Model/SysinfoModel.php @@ -11,12 +11,15 @@ namespace Joomla\Component\Admin\Administrator\Model; use Joomla\CMS\Component\ComponentHelper; +use Joomla\CMS\Extension\ExtensionHelper; use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\Log\Log; use Joomla\CMS\MVC\Model\BaseDatabaseModel; +use Joomla\CMS\Plugin\PluginHelper; use Joomla\CMS\Version; use Joomla\Registry\Registry; +use Joomla\Utilities\ArrayHelper; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; @@ -321,12 +324,27 @@ public function &getInfo(): array 'server' => $_SERVER['SERVER_SOFTWARE'] ?? getenv('SERVER_SOFTWARE'), 'sapi_name' => PHP_SAPI, 'version' => (new Version())->getLongVersion(), + 'compatpluginenabled' => PluginHelper::isEnabled('system', 'compat'), + 'compatpluginparameters' => $this->getCompatPluginParameters(), 'useragent' => $_SERVER['HTTP_USER_AGENT'] ?? '', ]; return $this->info; } + private function getCompatPluginParameters() + { + $record = ExtensionHelper::getExtensionRecord('compat', 'plugin', 0, 'system'); + + if ($record) { + $params = new Registry($record->params); + + return ArrayHelper::toString($params->toArray(), ':', ', '); + } + + return ''; + } + /** * Check if the phpinfo function is enabled * diff --git a/administrator/components/com_admin/tmpl/sysinfo/default_system.php b/administrator/components/com_admin/tmpl/sysinfo/default_system.php index 0891b5c2ef82b..06e1bdb41f60a 100644 --- a/administrator/components/com_admin/tmpl/sysinfo/default_system.php +++ b/administrator/components/com_admin/tmpl/sysinfo/default_system.php @@ -120,6 +120,14 @@ info['version']; ?> +