Skip to content

Commit 6cb0a1a

Browse files
committed
3.0.4
1 parent 5e64692 commit 6cb0a1a

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

code/General.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use FormTools\Files;
77
use FormTools\General as CoreGeneral;
88
use FormTools\Modules;
9-
use PDO;
109

1110

1211
class General

code/Module.class.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use FormTools\Submissions;
1717
use FormTools\Views;
1818

19-
use PDOException;
19+
use Exception;
2020

2121

2222
class Module extends FormToolsModule
@@ -26,8 +26,8 @@ class Module extends FormToolsModule
2626
protected $author = "Ben Keen";
2727
protected $authorEmail = "[email protected]";
2828
protected $authorLink = "http://formtools.org";
29-
protected $version = "3.0.3";
30-
protected $date = "2017-11-07";
29+
protected $version = "3.0.4";
30+
protected $date = "2017-11-22";
3131
protected $originLanguage = "en_us";
3232
protected $jsFiles = array(
3333
"{MODULEROOT}/scripts/admin.js",
@@ -69,7 +69,7 @@ public function install($module_id)
6969

7070
$db->processTransaction();
7171

72-
} catch (PDOException $e) {
72+
} catch (Exception $e) {
7373
$db->rollbackTransaction();
7474
$success = false;
7575
$message = $L["notify_installation_problem_c"] . " <b>" . $e->getMessage() . "</b>";
@@ -117,7 +117,7 @@ public function resetData()
117117
$this->addModuleSettings();
118118

119119
$db->processTransaction();
120-
} catch (PDOException $e) {
120+
} catch (Exception $e) {
121121
$db->rollbackTransaction();
122122
$success = false;
123123
$message = $L["notify_installation_problem_c"] . " <b>" . $e->getMessage() . "</b>";
@@ -383,7 +383,7 @@ public function addExcelExportGroup()
383383
ExportTypes::addExportType(array(
384384
"export_type_name" => $L["phrase_table_format"],
385385
"visibility" => "show",
386-
"filename" => "submissions-{\$M}.{\$j}.html",
386+
"filename" => "submissions-{\$M}.{\$j}.xls",
387387
"export_group_id" => $export_group_id,
388388
"smarty_template" => $excel_smarty_template
389389
), $L);
@@ -671,7 +671,7 @@ public function export ($params)
671671
$placeholders["export_type_name"] = $export_type_info["export_type_name"];
672672

673673
$plugin_dirs = array("$root_dir/modules/export_manager/smarty_plugins");
674-
$export_type_smarty_template = CoreGeneral::evalSmartyString($template, $placeholders, "", $plugin_dirs);
674+
$export_type_smarty_template = CoreGeneral::evalSmartyString($template, $placeholders, $plugin_dirs);
675675

676676

677677
// next, add the placeholders needed for the export group smarty template

0 commit comments

Comments
 (0)