Commit 782b9e16 authored by Melissa Draper's avatar Melissa Draper
Browse files

Check for PIEFORM_GOT_HEADDATA before defining (bug #906619)

PIEFORM_GOT_HEADDATA gets (re-)defined in web.php. This commit
adds a check to make sure it isn't already defined.

Change-Id: Ia6ab49f791e7efcbbbba8b3ad3cc4f5a36fadfb7
Signed-off-by: default avatarMelissa Draper <>
parent eea2e6be
......@@ -85,7 +85,9 @@ function smarty($javascript = array(), $headers = array(), $pagestrings = array(
if (function_exists('pieform_get_headdata')) {
$headers = array_merge($headers, pieform_get_headdata());
if (!defined('PIEFORM_GOT_HEADDATA')) {
// Insert the appropriate javascript tags
Supports Markdown
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