Skip to content

Commit

Permalink
3.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
benkeen committed Nov 23, 2017
1 parent 5e64692 commit 6cb0a1a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion code/General.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use FormTools\Files;
use FormTools\General as CoreGeneral;
use FormTools\Modules;
use PDO;


class General
Expand Down
14 changes: 7 additions & 7 deletions code/Module.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use FormTools\Submissions;
use FormTools\Views;

use PDOException;
use Exception;


class Module extends FormToolsModule
Expand All @@ -26,8 +26,8 @@ class Module extends FormToolsModule
protected $author = "Ben Keen";
protected $authorEmail = "ben.keen@gmail.com";
protected $authorLink = "http://formtools.org";
protected $version = "3.0.3";
protected $date = "2017-11-07";
protected $version = "3.0.4";
protected $date = "2017-11-22";
protected $originLanguage = "en_us";
protected $jsFiles = array(
"{MODULEROOT}/scripts/admin.js",
Expand Down Expand Up @@ -69,7 +69,7 @@ public function install($module_id)

$db->processTransaction();

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

$db->processTransaction();
} catch (PDOException $e) {
} catch (Exception $e) {
$db->rollbackTransaction();
$success = false;
$message = $L["notify_installation_problem_c"] . " <b>" . $e->getMessage() . "</b>";
Expand Down Expand Up @@ -383,7 +383,7 @@ public function addExcelExportGroup()
ExportTypes::addExportType(array(
"export_type_name" => $L["phrase_table_format"],
"visibility" => "show",
"filename" => "submissions-{\$M}.{\$j}.html",
"filename" => "submissions-{\$M}.{\$j}.xls",
"export_group_id" => $export_group_id,
"smarty_template" => $excel_smarty_template
), $L);
Expand Down Expand Up @@ -671,7 +671,7 @@ public function export ($params)
$placeholders["export_type_name"] = $export_type_info["export_type_name"];

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


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

0 comments on commit 6cb0a1a

Please sign in to comment.