Attempt at name-agnostic assets path.
This commit is contained in:
parent
fecdecf117
commit
4182326d50
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,9 @@ class syntax_plugin_hackerbase extends DokuWiki_Syntax_Plugin {
|
|||
} else {
|
||||
$opened = $json['state']['open'];
|
||||
$lastchange = $json['state']['lastchange'];
|
||||
$assetsdir = DOKU_BASE . "lib/plugins/hackerbase/assets";
|
||||
$myname = basename(dirname(__FILE__));
|
||||
// 'hackerbase';
|
||||
$assetsdir = DOKU_BASE . "lib/plugins/" . $myname . "/assets";
|
||||
if ($opened == TRUE) {
|
||||
$status =
|
||||
'<p><img src="' . $assetsdir . '/open-sun.png"></p>' .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue