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