diff --git a/conf/default.php b/conf/default.php index d8e33f6..8eb1838 100644 --- a/conf/default.php +++ b/conf/default.php @@ -3,6 +3,7 @@ * Default settings for the sqlquery plugin * * @author George Pirogov + * @author Thomas Hooge */ //$conf['fixme'] = 'FIXME'; diff --git a/conf/metadata.php b/conf/metadata.php index b32eb9e..1a2c4b6 100644 --- a/conf/metadata.php +++ b/conf/metadata.php @@ -3,6 +3,7 @@ * Options for the sqlquery plugin * * @author George Pirogov + * @author Thomas Hooge */ $meta['type'] = array('multichoice', '_choices' => array('mysql', 'dblib')); diff --git a/lang/en/settings.php b/lang/en/settings.php index 4680562..821670e 100644 --- a/lang/en/settings.php +++ b/lang/en/settings.php @@ -3,6 +3,7 @@ * English language file for sqlquery plugin * * @author George Pirogov + * @author Thomas Hooge */ // keys need to match the config setting name diff --git a/plugin.info.txt b/plugin.info.txt index 5bcfc43..0f5dcc9 100644 --- a/plugin.info.txt +++ b/plugin.info.txt @@ -1,6 +1,6 @@ base sqlquery author Thomas Hooge email thomas@hoogi.de -date 2023-12-01 +date 2026-07-24 name SQL query plugin (multidb) desc Processing queries to databases and display results as a table. diff --git a/syntax.php b/syntax.php index b7715c8..5298499 100644 --- a/syntax.php +++ b/syntax.php @@ -85,7 +85,7 @@ class syntax_plugin_sqlquery extends DokuWiki_Syntax_Plugin { $password = $this->getConf('password'); // connect to database - $dsn = "{$data['type']}:host={$data['host']};dbname={$data[db]};charset=UTF8;"; + $dsn = "{$data['type']}:host={$data['host']};dbname={$data['db']};charset=UTF8;"; try { $dbh = new PDO($dsn, $user, $password); } catch (PDOException $e) {