diff --git a/libraries/Advisor.class.php b/libraries/Advisor.class.php index f79da7eaa0..5e467ebd31 100644 --- a/libraries/Advisor.class.php +++ b/libraries/Advisor.class.php @@ -190,7 +190,7 @@ class Advisor $str = $this->translate($jst[0], $jst[1]); } catch (Exception $e) { $this->storeError( - sprintf(__('Failed formatting string for rule \'%s\''), $rule['name']), + sprintf(__('Failed formatting string for rule \'%s\'.'), $rule['name']), $e ); return; diff --git a/test/classes/Advisor_test.php b/test/classes/Advisor_test.php index bf026c1fe0..3ca153dbb5 100644 --- a/test/classes/Advisor_test.php +++ b/test/classes/Advisor_test.php @@ -98,7 +98,7 @@ class Advisor_test extends PHPUnit_Framework_TestCase array( array('justification' => 'foo | fsafdsa', 'name' => 'Failure', 'issue' => 'issue', 'recommendation' => 'Recommend'), array(), - 'Failed formatting string for rule \'Failure\' PHP threw following error: Use of undefined constant fsafdsa - assumed \'fsafdsa\'', + 'Failed formatting string for rule \'Failure\'. PHP threw following error: Use of undefined constant fsafdsa - assumed \'fsafdsa\'', ), ); }