for(my $i = 0; $i < $#paths; $i++){
$path_prefix .= '../';
}
+ $wiki->{book_plugin_path_prefix} = $path_prefix;
my $head_info = <<"END_OF_HEAD";
<link href="${path_prefix}plugin/book/google-code-prettify/sunburst.css" type="text/css" rel="stylesheet" />
my $buf = '';
my $count = 1;
- my @paths = split(/\//, $wiki->get_CGI()->path_info());
- my $path_prefix = '';
- for(my $i = 0; $i < $#paths; $i++){
- $path_prefix .= '../';
- }
-
foreach my $memo (@{$plugin->{'memolist'}}){
$buf .= '<li><a href="#todo-'.$count.'">';
$icon = '';
$icon = 'delete.png';
}
if($icon ne ''){
- $buf .= '<img src="'.$path_prefix.'plugin/book/icons/'.$icon.'" style="border: 0px; position: relative; top: 4px; padding-right: 2px;">';
+ $buf .= '<img src="'.$wiki->{book_plugin_path_prefix}.'plugin/book/icons/'.$icon.'" style="border: 0px; position: relative; top: 4px; padding-right: 2px;">';
$memo =~ s/^\[.+?\]//;
}
$buf .= Util::escapeHTML($memo).'</a></li>';