BUGFIX for html encoded characters in the pdf footers.
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 13 Dec 2016 20:37:17 +0000 (15:37 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 13 Dec 2016 20:37:17 +0000 (15:37 -0500)
When saving the Footer text for the event management it will save it as
htmlspecialchars. Encoding ampersand into html code. This needs to be
undone when it is put into the pdf footer so it can be done correctly.

index.php
models/front/events/list.php

index b014792..fe6b5e6 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Database Events
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
- * Version: 1.5.8
+ * Version: 1.5.9
  * Author: Chuck Scott
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -20,7 +20,7 @@
  * @package glmMembersDatabaseEventsAddOn
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.5.8
+ * @version 1.5.9
  */
 
 /*
@@ -38,7 +38,7 @@
  *  so that we're sure the other add-ons see an up to date
  *  version from this plugin.
  */
-define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.5.8');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.5.9');
 define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.1.1');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.
index c8f6677..6ec397a 100644 (file)
@@ -558,7 +558,7 @@ class GlmMembersFront_events_list extends GlmMembersFront_events_baseAction
                 // add footers to each page
                 if ( $this->config['settings']['footer_text'] ) {
                     $footer = new SetaPDF_Core_Text_Block( $font, self::PDF_FONT_SIZE );
-                    $footer->setText($this->config['settings']['footer_text']);
+                    $footer->setText( htmlspecialchars_decode($this->config['settings']['footer_text']));
                     $footer->setAlign('center');
                     $footer->setWidth(self::PDF_WIDTH);