Fixed config names, added feature documentation to readme

This commit is contained in:
2018-12-10 14:56:37 +01:00
parent 3944eabdcd
commit f3c949dcb0
2 changed files with 12 additions and 2 deletions

View File

@@ -43,13 +43,13 @@ class syntax_plugin_sqlquery extends DokuWiki_Syntax_Plugin {
if (preg_match('/<sql\b.*host=([\w\-\.$]+)/', $match, $result)) {
$data['host'] = $result[1];
} else {
$data['host'] = $this->getConf('host');
$data['host'] = $this->getConf('Host');
}
# get database
if (preg_match('/<sql\b.*db=([\w\-\.$]+)/', $match, $result)) {
$data['db'] = $result[1];
} else {
$data['db'] = $this->getConf('db');
$data['db'] = $this->getConf('DB');
}
# get query
$data['match'] = $match;