Add configuration.
This commit is contained in:
parent
761500c1b2
commit
adad121b01
3 changed files with 3 additions and 1 deletions
|
@ -1 +1,2 @@
|
||||||
$conf["htmlexports"] = "/var/lib/jendasap";
|
$conf["htmlexports"] = "/var/lib/jendasap";
|
||||||
|
$conf["spaceapijson"] = "/home/brmdoor-web/spaceapi-status/brmstatus.json";
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
$meta["htmlexports"] = array("string");
|
$meta["htmlexports"] = array("string");
|
||||||
|
$meta["spaceapijson"] = array("string");
|
||||||
|
|
|
@ -29,7 +29,7 @@ class syntax_plugin_brmburo extends DokuWiki_Syntax_Plugin {
|
||||||
public function render($mode, Doku_Renderer $renderer, $data) {
|
public function render($mode, Doku_Renderer $renderer, $data) {
|
||||||
// $data is what the function handle return'ed.
|
// $data is what the function handle return'ed.
|
||||||
if($mode == 'xhtml'){
|
if($mode == 'xhtml'){
|
||||||
$spaceapi_status_json = '/home/brmdoor-web/spaceapi-status/brmstatus.json';
|
$spaceapi_status_json = $this->getConf("spaceapijson");
|
||||||
$str = file_get_contents($spaceapi_status_json);
|
$str = file_get_contents($spaceapi_status_json);
|
||||||
/** @var Doku_Renderer_xhtml $renderer */
|
/** @var Doku_Renderer_xhtml $renderer */
|
||||||
$status = "UNKNOWN";
|
$status = "UNKNOWN";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue