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:
parent
0eba6fa4c3
commit
840c42adc4
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user