Skip to content

Commit

Permalink
2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
benkeen committed Aug 12, 2018
1 parent 1009054 commit 33dd8eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/Code.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public static function addHistoryRow($form_id, $submission_id, $change_type, $da

$col_values["sh___changed_fields"] = implode(",", $changed_fields);

list ($col_str, $placeholders) = Core::$db->getInsertStatementParams($col_values);
list ($col_str, $placeholders, $col_values) = Core::$db->getInsertStatementParams($col_values);
try {
$db->query("INSERT INTO {PREFIX}form_{$form_id}_history ($col_str) VALUES ($placeholders)");
$db->bindAll($col_values);
Expand Down
4 changes: 2 additions & 2 deletions code/General.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use FormTools\Accounts;
use FormTools\Core;
use FormTools\Modules;
use Smarty, PDO;
use Smarty, SmartyBC, PDO;

class General
{
Expand Down Expand Up @@ -67,7 +67,7 @@ public static function getDhtmlPageNav($num_results, $num_per_page, $current_pag
{
$root_dir = Core::getRootDir();

$smarty = new Smarty();
$smarty = Core::useSmartyBC() ? new SmartyBC() : new Smarty();
$smarty->setTemplateDir("$root_dir/themes/default");
$smarty->setCompileDir("$root_dir/themes/default/cache/");
$smarty->setUseSubDirs(Core::shouldUseSmartySubDirs());
Expand Down
4 changes: 2 additions & 2 deletions code/Module.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class Module extends FormToolsModule
protected $author = "Ben Keen";
protected $authorEmail = "[email protected]";
protected $authorLink = "https://formtools.org";
protected $version = "2.0.3";
protected $date = "2018-01-04";
protected $version = "2.0.4";
protected $date = "2018-08-11";
protected $originLanguage = "en_us";

protected $nav = array(
Expand Down

0 comments on commit 33dd8eb

Please sign in to comment.