Commit 2030c41b by Scott Committed by GitHub

Merge pull request #495 from pupi1985/patch-87

Avoid resetting $qa_content['script'] when already modified in admin_form()
parents 5f5f36a6 268e0eae
...@@ -368,7 +368,11 @@ function qa_output_content($qa_content) ...@@ -368,7 +368,11 @@ function qa_output_content($qa_content)
} }
$script[] = '</script>'; $script[] = '</script>';
$qa_content['script'] = $script; if (!isset($qa_content['script'])) {
$qa_content['script'] = array();
}
$qa_content['script'] = array_merge($qa_content['script'], $script);
// Load the appropriate theme class and output the page // Load the appropriate theme class and output the page
......
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