Skip to content

Commit

Permalink
MDL-41266 Logging: Added choose option for external database store
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja committed Mar 4, 2014
1 parent 745f2cc commit 24b293e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions admin/tool/log/store/database/classes/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class helper {
*/
public static function get_drivers() {
return array(
'' => get_string('choosedots'),
'native/mysqli' => \moodle_database::get_driver_instance('mysqli', 'native')->get_name(),
'native/mariadb' => \moodle_database::get_driver_instance('mariadb', 'native')->get_name(),
'native/pgsql' => \moodle_database::get_driver_instance('pgsql', 'native')->get_name(),
Expand Down
2 changes: 1 addition & 1 deletion admin/tool/log/store/database/classes/log/store.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function init() {
}

$dbdriver = $this->get_config('dbdriver');
if (!$dbdriver) {
if (empty($dbdriver)) {
$this->extdb = false;
return false;
}
Expand Down

0 comments on commit 24b293e

Please sign in to comment.