[imp] open_compose_win.js not included "Solved"

Vincent Magnin imp at lx-soft.com
Thu Sep 11 05:32:06 PDT 2003


Hi,

The problem was that the function HORDE::includeScriptFiles() is called before
Horde::addScriptFile('open_compose_win.js'); in imp/lib/IMP.php .


Thus the javascript is not added.

This can be solved with patching lib/Horde.php:

diff -r1.337 Horde.php
252c252
<         global $registry;
---
>         global $registry, $_horde_include_done;
265c265
<         if (ob_get_length() || headers_sent()) {
---
>         if (ob_get_length() || headers_sent() || $_horde_include_done) {
282c282
<         global $_horde_script_files, $registry;
---
>         global $_horde_script_files, $registry, $_horde_include_done;
292a293
>       $_horde_include_done = true;


More information about the imp mailing list