Merge pull request #2033 from b17/issue-1968/mysql-check

Add check for PDO Mysql extension.
This commit is contained in:
Lucas Bartholemy 2016-10-18 16:39:05 +02:00 committed by GitHub
commit 100ef7355b

View File

@ -233,6 +233,20 @@ class SelfTest
);
}
$title = 'PHP - PDO Mysql Extension';
if (extension_loaded('pdo_mysql')) {
$checks[] = array(
'title' => Yii::t('base', $title),
'state' => 'OK'
);
} else {
$checks[] = array(
'title' => Yii::t('base', $title),
'state' => 'ERROR',
'hint' => 'Install PDO Mysql Extension'
);
}
// Checks Writeable Config
/*
$title = 'Permissions - Config';