Commit 5e26b0e9 authored by Nigel McNie's avatar Nigel McNie
Browse files

[PIEFORMS] Allow elements parameter to be optional in the i18n method.

This makes it easier to use outside of Pieforms itself.
Signed-off-by: default avatarNigel McNie <>
parent 8c62fea8
......@@ -1056,7 +1056,7 @@ EOF;
* can specify there own i18n strings for rules
* @return string The internationalised string
public function i18n($plugin, $pluginname, $key, $element) {/*{{{*/
public function i18n($plugin, $pluginname, $key, $element=null) {/*{{{*/
if (!in_array($plugin, array('element', 'renderer', 'rule'))) {
throw new PieformException("Invalid plugin name '$plugin'");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment