mwword viewer: now it work fine (imp cvs 2.3.7)

Fabian Gervan fabian@interk.com.ar
Thu, 27 Sep 2001 02:58:21 +0100


The problem was that /usr/local/bin/wvHtml call to wvWare without full
path (/usr/local/bin).
IMP didn't show any error message, I fix it changing
/horde/lib/MIME/Viewer/msword.php :

>        $x =  shell_exec($mime_drivers['horde']['msword']['location'] . " $tmp_word $tmp_outpu

        if (!file_exists($tmp_output)) {
            return _("Unable to translate this Word document");
        }

        $out = fopen($tmp_output, 'r');
>        $data = $x;
        while (($rc = fgets($out, 8192))) {
            $data .= $rc;     }

        return $data;

when an error appened, imp show it in the new windows.

-- 
Best regards,
 Fabian                          mailto:fabian@interk.com.ar