Priority: Normal
Current State: Closed
Released In:
Target Release:
from my apache logs:
XXXX YYY.YYY.YYY.YYY - - [04/Jan/2010:13:08:19 -0300] "GET /Main/%FOOTNOTEPLUGIN_CSS% HTTP/1.1" 400 288 "http://XXXX.tld/" "Mozilla/5.0 (X11; U; Linux x86_64; pt-BR; rv:1.9.0.16) Gecko/2009121609 Iceweasel/3.0.6 (Debian-3.0.6-3)"
The following patch fixes the problem:
Index: lib/Foswiki/Plugins/FootNotePlugin.pm
===================================================================
--- lib/Foswiki/Plugins/FootNotePlugin.pm (revisão 5926)
+++ lib/Foswiki/Plugins/FootNotePlugin.pm (cópia de trabalho)
@@ -33,6 +33,7 @@
use vars qw(
$web $topic $user $installWeb $pluginName
$debug $header $footer $maintopic
+$stylesheet
);
$pluginName = 'FootNotePlugin'; # Name of this Plugin
@@ -60,6 +61,10 @@
$footer = $Foswiki::cfg{Plugins}{$pluginName}{Footer} || 0;
Foswiki::Func::writeDebug( __PACKAGE__, " footer = ${footer}" ) if $debug;
+ # Get configured stylesheet
+ $stylesheet = $Foswiki::cfg{Plugins}{$pluginName}{CSS} || '%PUBURLPATH%/%SYSTEMWEB%/FootNotePlugin/styles.css';
+ Foswiki::Func::writeDebug( __PACKAGE__, " stylesheet = ${stylesheet}" ) if $debug;
+
$maintopic = "$web.$topic";
Foswiki::Plugins::FootNotePlugin::Note::reset();
@@ -136,7 +141,7 @@
# Print remaining footnotes
$_[0] = $_[0] . printNotes($maintopic, ("LIST" => "ALL"));
my $head = <<HERE;
-<link rel="stylesheet" href="%FOOTNOTEPLUGIN_CSS%" type="text/css" media="all" />
+<link rel="stylesheet" href="$stylesheet" type="text/css" media="all" />
HERE
Foswiki::Func::addToHEAD( 'FOOTNOTEPLUGIN_LINKCSS', $head );
}
Index: lib/Foswiki/Plugins/FootNotePlugin/Config.spec
===================================================================
--- lib/Foswiki/Plugins/FootNotePlugin/Config.spec (revisão 5926)
+++ lib/Foswiki/Plugins/FootNotePlugin/Config.spec (cópia de trabalho)
@@ -15,7 +15,7 @@
# **STRING 50**
# Full URL of the CSS to use to format footnotes.
-$Foswiki::cfg{Plugins}{FootNotePlugin}{CSS} = '%PUBURL%/%SYSTEMWEB%/FootNotePlugin/styles.css';
+$Foswiki::cfg{Plugins}{FootNotePlugin}{CSS} = '%PUBURLPATH%/%SYSTEMWEB%/FootNotePlugin/styles.css';
# **BOOLEAN**
# Debug flag
--
AntonioTerceiro - 04 Jan 2010
just released a fixed version of the plugin
--
AntonioTerceiro - 04 Jan 2010