Gravity PDF - Version 3.3.2.1

Version Description

  • Bug - Incorrectly showing assigned RAM to website
Download this release

Release Info

Developer Blue Liquid Designs
Plugin Icon 128x128 Gravity PDF
Version 3.3.2.1
Comparing to
See all releases

Code changes from version 3.3.2 to 3.3.2.1

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.gravityformspdfextended.com
4
  Tags: gravity, forms, pdf, automation, attachment
5
  Requires at least: 3.5
6
  Tested up to: 3.8
7
- Stable tag: 3.3.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -78,6 +78,10 @@ All FAQs can be [viewed on the Gravity Forms PDF Extended website](http://gravit
78
 
79
  == Changelog ==
80
 
 
 
 
 
81
  = 3.3.2 =
82
  * Bug - Some hosts reported SSL certificate errors when using the support API. Disabled HTTPS for further investigation. Using hash-based verification for authentication.
83
  * Housekeeping - Forgot to disable API debug feature after completing beta
4
  Tags: gravity, forms, pdf, automation, attachment
5
  Requires at least: 3.5
6
  Tested up to: 3.8
7
+ Stable tag: 3.3.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
78
 
79
  == Changelog ==
80
 
81
+
82
+ = 3.3.2.1 =
83
+ * Bug - Incorrectly showing assigned RAM to website
84
+
85
  = 3.3.2 =
86
  * Bug - Some hosts reported SSL certificate errors when using the support API. Disabled HTTPS for further investigation. Using hash-based verification for authentication.
87
  * Housekeeping - Forgot to disable API debug feature after completing beta
model/settings.php CHANGED
@@ -174,7 +174,19 @@ class GFPDF_Settings_Model extends GFPDF_Settings
174
  }
175
  $gfpdfe_data->gd_installed = false;
176
  $gfpdfe_data->allow_initilisation = false;
177
- }
 
 
 
 
 
 
 
 
 
 
 
 
178
 
179
  private function check_available_ram()
180
  {
@@ -183,7 +195,9 @@ class GFPDF_Settings_Model extends GFPDF_Settings
183
  /*
184
  * Get ram available in bytes and convert it to megabytes
185
  */
186
- $gfpdfe_data->ram_available = floor(memory_get_usage() / 1024 / 1024);
 
 
187
  $gfpdfe_data->ram_compatible = true;
188
  if($gfpdfe_data->ram_available < 128)
189
  {
174
  }
175
  $gfpdfe_data->gd_installed = false;
176
  $gfpdfe_data->allow_initilisation = false;
177
+ }
178
+
179
+ /* convert ini memory limit to bytes */
180
+ private function convert_ini_memory($size_str)
181
+ {
182
+ switch (substr ($size_str, -1))
183
+ {
184
+ case 'M': case 'm': return (int)$size_str * 1048576;
185
+ case 'K': case 'k': return (int)$size_str * 1024;
186
+ case 'G': case 'g': return (int)$size_str * 1073741824;
187
+ default: return $size_str;
188
+ }
189
+ }
190
 
191
  private function check_available_ram()
192
  {
195
  /*
196
  * Get ram available in bytes and convert it to megabytes
197
  */
198
+ $memory_limit = $this->convert_ini_memory(ini_get('memory_limit'));
199
+
200
+ $gfpdfe_data->ram_available = floor($memory_limit / 1024 / 1024); /* convert to MB */
201
  $gfpdfe_data->ram_compatible = true;
202
  if($gfpdfe_data->ram_available < 128)
203
  {
pdf.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Gravity Forms PDF Extended
5
  Plugin URI: http://www.gravityformspdfextended.com
6
  Description: Gravity Forms PDF Extended allows you to save/view/download a PDF from the front- and back-end, and automate PDF creation on form submission. Our Business Plus package also allows you to overlay field onto an existing PDF.
7
- Version: 3.3.2
8
  Author: Blue Liquid Designs
9
  Author URI: http://www.blueliquiddesigns.com.au
10
 
@@ -33,7 +33,7 @@ GNU General Public License for more details.
33
  /*
34
  * Define our constants
35
  */
36
- if(!defined('PDF_EXTENDED_VERSION')) { define('PDF_EXTENDED_VERSION', '3.3.2'); }
37
  if(!defined('GF_PDF_EXTENDED_SUPPORTED_VERSION')) { define('GF_PDF_EXTENDED_SUPPORTED_VERSION', '1.7'); }
38
  if(!defined('GF_PDF_EXTENDED_WP_SUPPORTED_VERSION')) { define('GF_PDF_EXTENDED_WP_SUPPORTED_VERSION', '3.5'); }
39
  if(!defined('GF_PDF_EXTENDED_PHP_SUPPORTED_VERSION')) { define('GF_PDF_EXTENDED_PHP_SUPPORTED_VERSION', '5'); }
4
  Plugin Name: Gravity Forms PDF Extended
5
  Plugin URI: http://www.gravityformspdfextended.com
6
  Description: Gravity Forms PDF Extended allows you to save/view/download a PDF from the front- and back-end, and automate PDF creation on form submission. Our Business Plus package also allows you to overlay field onto an existing PDF.
7
+ Version: 3.3.2.1
8
  Author: Blue Liquid Designs
9
  Author URI: http://www.blueliquiddesigns.com.au
10
 
33
  /*
34
  * Define our constants
35
  */
36
+ if(!defined('PDF_EXTENDED_VERSION')) { define('PDF_EXTENDED_VERSION', '3.3.2.1'); }
37
  if(!defined('GF_PDF_EXTENDED_SUPPORTED_VERSION')) { define('GF_PDF_EXTENDED_SUPPORTED_VERSION', '1.7'); }
38
  if(!defined('GF_PDF_EXTENDED_WP_SUPPORTED_VERSION')) { define('GF_PDF_EXTENDED_WP_SUPPORTED_VERSION', '3.5'); }
39
  if(!defined('GF_PDF_EXTENDED_PHP_SUPPORTED_VERSION')) { define('GF_PDF_EXTENDED_PHP_SUPPORTED_VERSION', '5'); }
view/templates/settings/changelog.php CHANGED
@@ -19,6 +19,10 @@
19
  <h2><?php _e('Changelog'); ?></h2>
20
 
21
  <p><strong>Current Version: <?php echo PDF_EXTENDED_VERSION; ?></strong></p>
 
 
 
 
22
 
23
  <h3>3.3.2</h3>
24
  <ul>
19
  <h2><?php _e('Changelog'); ?></h2>
20
 
21
  <p><strong>Current Version: <?php echo PDF_EXTENDED_VERSION; ?></strong></p>
22
+ <h3>3.3.2.1</h3>
23
+ <ul>
24
+ <li>Bug - Incorrectly showing assigned RAM to website</li>
25
+ </ul>
26
 
27
  <h3>3.3.2</h3>
28
  <ul>