This forum has moved to a new location and is in read-only mode. Please visit to access the new location.

Mathilde Escher Stiftung
Mathilde Escher Stiftung

Hey there,

After an update of October cms to version 2.2.15 the addJs method seems to ignore the added parameters. The documentation says:

public void addJs($name, $attributes=array())

Is this attributes argument for adding parameters?

I have this code here:

$this->addJs('assets/js/multi_captcha.js', http_build_query($params));

The outcome then looks like this:

<script src=""></script>

Unfortunately, there aren't any parameters added here. What can I do better?

UPDATE: The $params by the way is an array. It is build like that:

$params = [
    'site-key' => (isset($multicaptcha['site_key'])) ? $multicaptcha['site_key'] : '',
    'locale' => $locale

Last updated

1-1 of 1

You cannot edit posts or make replies: the forum has moved to