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 <melissa@catalyst.net.nz>
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());
define('PIEFORM_GOT_HEADDATA', 1);
if (!defined('PIEFORM_GOT_HEADDATA')) {
define('PIEFORM_GOT_HEADDATA', 1);
}
}
// Insert the appropriate javascript tags
......
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