Commit 268e0eae by pupi1985

Avoid resetting $qa_content['script'] when already modified in admin_form()

parent 5f5f36a6
...@@ -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