Remove auth token
Some checks failed
DokuWiki Default Tasks / all (push) Has been cancelled

This commit is contained in:
2026-01-06 21:57:55 +01:00
parent 681eadaed0
commit f86dce6ec3
8 changed files with 4 additions and 20 deletions

View File

@@ -74,16 +74,12 @@ class syntax_plugin_luxtools_open extends SyntaxPlugin
}
$serviceUrl = trim((string)$this->getConf('open_service_url'));
$serviceToken = trim((string)$this->getConf('open_service_token'));
$attrs = ' type="button" class="luxtools-open"'
. ' data-path="' . hsc($path) . '"';
if ($serviceUrl !== '') {
$attrs .= ' data-service-url="' . hsc($serviceUrl) . '"';
}
if ($serviceToken !== '') {
$attrs .= ' data-service-token="' . hsc($serviceToken) . '"';
}
$renderer->doc .= '<button' . $attrs . '>' . hsc($caption) . '</button>';
return true;