16
16
use FormTools \Submissions ;
17
17
use FormTools \Views ;
18
18
19
- use PDOException ;
19
+ use Exception ;
20
20
21
21
22
22
class Module extends FormToolsModule
@@ -26,8 +26,8 @@ class Module extends FormToolsModule
26
26
protected $ author = "Ben Keen " ;
27
27
protected $ authorEmail =
"[email protected] " ;
28
28
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 " ;
31
31
protected $ originLanguage = "en_us " ;
32
32
protected $ jsFiles = array (
33
33
"{MODULEROOT}/scripts/admin.js " ,
@@ -69,7 +69,7 @@ public function install($module_id)
69
69
70
70
$ db ->processTransaction ();
71
71
72
- } catch (PDOException $ e ) {
72
+ } catch (Exception $ e ) {
73
73
$ db ->rollbackTransaction ();
74
74
$ success = false ;
75
75
$ message = $ L ["notify_installation_problem_c " ] . " <b> " . $ e ->getMessage () . "</b> " ;
@@ -117,7 +117,7 @@ public function resetData()
117
117
$ this ->addModuleSettings ();
118
118
119
119
$ db ->processTransaction ();
120
- } catch (PDOException $ e ) {
120
+ } catch (Exception $ e ) {
121
121
$ db ->rollbackTransaction ();
122
122
$ success = false ;
123
123
$ message = $ L ["notify_installation_problem_c " ] . " <b> " . $ e ->getMessage () . "</b> " ;
@@ -383,7 +383,7 @@ public function addExcelExportGroup()
383
383
ExportTypes::addExportType (array (
384
384
"export_type_name " => $ L ["phrase_table_format " ],
385
385
"visibility " => "show " ,
386
- "filename " => "submissions-{ \$M}.{ \$j}.html " ,
386
+ "filename " => "submissions-{ \$M}.{ \$j}.xls " ,
387
387
"export_group_id " => $ export_group_id ,
388
388
"smarty_template " => $ excel_smarty_template
389
389
), $ L );
@@ -671,7 +671,7 @@ public function export ($params)
671
671
$ placeholders ["export_type_name " ] = $ export_type_info ["export_type_name " ];
672
672
673
673
$ 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 );
675
675
676
676
677
677
// next, add the placeholders needed for the export group smarty template
0 commit comments