Closed morikoff closed 5 months ago
Latest available
just add this to the top of the file before class PhpPsInfo
require_once 'vendor/autoload.php'; $kernel = new AppKernel(_PS_MODEDEV?'dev':'prod', _PS_MODEDEV); define('_MY_PSVERSION', $kernel::VERSION);
and change the getVersions() function to be like this :
public function getVersions() { $data = [ 'Web server' => [$this->getWebServer()], 'PHP Type' => [ strpos(PHP_SAPI, 'cgi') !== false ? 'CGI with Apache Worker or another webserver' : 'Apache Module (low performance)' ], 'Prestashop Version' =>[_MY_PSVERSION] ];
here you go https://github.com/waleedelsafty/php-ps-info
how do I correct this issue https://github.com/PrestaShop/php-ps-info/issues/22
Hello guys I dont fully understand the conversation but
Gentlemen, for which version of the Prestashop this script?