Item8378: uses FOOTNOTEPLUGIN_CSS, which does not exist anymore

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release:
Applies To: Extension
Component: FootNotePlugin
Branches:
Reported By: Foswiki:Main.AntonioTerceiro
Waiting For:
Last Change By: AntonioTerceiro
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
 

ItemTemplate edit

Summary uses FOOTNOTEPLUGIN_CSS, which does not exist anymore
ReportedBy Foswiki:Main.AntonioTerceiro
Codebase
SVN Range
AppliesTo Extension
Component FootNotePlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins FootNotePlugin:778853f81531
ReleasedIn
Topic revision: r3 - 04 Jan 2010, AntonioTerceiro
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy