Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function __construct($message) |
||
24 | { |
||
25 | /** @var \helper_plugin_struct $plugin */ |
||
26 | $plugin = plugin_load('helper', 'issuelinks_util'); |
||
27 | $trans = $plugin->getLang($this->trans_prefix . $message); |
||
28 | if (!$trans) { |
||
29 | $trans = $message; |
||
30 | } |
||
31 | |||
32 | $args = func_get_args(); |
||
33 | array_shift($args); |
||
34 | |||
35 | $trans = vsprintf($trans, $args); |
||
36 | |||
37 | parent::__construct($trans); |
||
38 | } |
||
40 |