1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-29 01:34:31 +01:00

array_unique to prevent JS Errors

This commit is contained in:
8chan 2014-10-22 19:16:45 -07:00
parent 0eba6fa4c3
commit 840c42adc4

View File

@ -1541,7 +1541,7 @@ function buildJavascript() {
} }
if ($config['additional_javascript_compile']) { if ($config['additional_javascript_compile']) {
foreach ($config['additional_javascript'] as $file) { foreach (array_unique($config['additional_javascript']) as $file) {
$script .= file_get_contents($file); $script .= file_get_contents($file);
} }
} }