Skip to content

Commit

Permalink
Check for PDO module
Browse files Browse the repository at this point in the history
  • Loading branch information
budziam committed Jan 8, 2020
1 parent ea7749b commit 760fe77
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions includes/Install/RequirementsStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,18 @@ public function getModules()
{
return [
[
'text' => "PHP v5.6.0 lub wyższa",
'text' => "PHP v5.6.0 lub wyżej",
'value' => semantic_to_number(PHP_VERSION) >= 50600,
'must-be' => false,
],

[
'text' => "Moduł cURL",
'value' => function_exists('curl_version'),
'text' => "Moduł CURL",
'value' => extension_loaded('curl'),
'must-be' => true,
],
[
'text' => "Moduł PDO",
'value' => extension_loaded('pdo') && extension_loaded('pdo_mysql'),
'must-be' => true,
],
];
Expand Down

0 comments on commit 760fe77

Please sign in to comment.