Commit 9378b31c authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Use smarty_core() not smarty() in pieform elements (bug #906619)



The tags and authilist pieform elements call the smarty function,
which is unnecessarily heavy.  When not generating a full html page,
smarty_core() should be used instead.

Change-Id: I1a4ad458584f36e3e068def36cfc3ae36dd34410
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent eea2e6be
......@@ -35,7 +35,7 @@ defined('INTERNAL') || die();
* @return string The HTML for the element
*/
function pieform_element_authlist(Pieform $form, $element) {
$smarty = smarty();
$smarty = smarty_core();
$smarty->left_delimiter = '{{';
$smarty->right_delimiter = '}}';
......
......@@ -33,7 +33,7 @@
* @return string The HTML for the element
*/
function pieform_element_tags(Pieform $form, $element) {
$smarty = smarty();
$smarty = smarty_core();
$value = array();
......
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