Skip to content

Commit

Permalink
Translate "thanks msg" in redirect plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Oct 29, 2017
1 parent db9f528 commit afd2a87
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/fabrik_form/redirect/redirect.php
Expand Up @@ -115,8 +115,6 @@ public function onLastProcess()
}
else
{
$msg = $this->data['thanks_message'];

// Redirect not working in admin.
if (!$this->app->isAdmin())
{
Expand All @@ -132,7 +130,7 @@ public function onLastProcess()
}
}

$smsg[$this->renderOrder] = $this->data['thanks_message'];
$smsg[$this->renderOrder] = FText::_($this->data['thanks_message']);

// Don't display system message if thanks is empty
if (FArrayHelper::getValue($this->data, 'thanks_message', '') !== '')
Expand Down

0 comments on commit afd2a87

Please sign in to comment.