Roundcube Community Forum

 

bug in rcube_shared.inc

Started by bugler, March 05, 2007, 04:53:06 AM

Previous topic - Next topic

bugler

Hello,

executing $OUTPUT->include_external_script('xx/myjs.js', 'foot'); does nothing.

In file rcube_shared.inc around line 162 (nightly build version) after:
 if (is_array($this->script_files['foot']))
   {
   foreach ($this->script_files['foot'] as $file)
    $__page_footer .= sprintf($this->script_tag_file, $this->scripts_path, $file);
   }

the following code should be added:
if (is_array($this->external_scripts['foot']))
   foreach ($this->external_scripts['foot'] as $xscript)
    $__page_footer .= sprintf($this->tag_format_external_script, $xscript);

Thanks.