New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists

Item12437: use a proper add-to-zone

Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: SendEmailPlugin
Branches: trunk
Reported By: MichaelDaum
Waiting For:
Last Change By: MichaelDaum
--- lib/Foswiki/Plugins/SendEmailPlugin/ (revision 16610)
+++ lib/Foswiki/Plugins/SendEmailPlugin/ (working copy)
@@ -461,12 +462,10 @@
 sub _addHeader {
-    my $header = <<'EOF';
-<style type="text/css" media="all">
-@import url("%PUBURL%/%SYSTEMWEB%/SendEmailPlugin/sendemailplugin.css");
+    Foswiki::Func::addToZone('head', 'SENDEMAILPLUGIN', <<EOF );
+<link rel='stylesheet' href='%PUBURL%/%SYSTEMWEB%/SendEmailPlugin/sendemailplugin.css' media='all' />
-    Foswiki::Func::addToHEAD( 'SENDEMAILPLUGIN', $header );

-- MichaelDaum - 15 Mar 2013

Topic revision: r2 - 15 Mar 2013, MichaelDaum - This page was cached on 22 Mar 2018 - 18:14.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License