[dev] Questions about MIME_Viewer

Brent J. Nordquist bjn at horde.org
Tue Jan 7 11:52:53 PST 2003


On Tue, 7 Jan 2003, Michael M Slusarz <slusarz at bigworm.colorado.edu> wrote:

> Quoting "Brent J. Nordquist" <bjn at horde.org>:
>
> | Shouldn't there be a check here that will prevent the call to
> | resolveDriver if $ob is false?
>
> This has been fixed.

Thanks!

> _getDriver() recursively calls itself with 'horde' as the $app parameter
> if no exact MIME_Viewer match is found in the application.  So this code
> is OK.

Right, but again, there is this code that happens early on in _getDriver:

    /* If the module doesn't exist in $mime_drivers_map, return now. */
    if (!array_key_exists($module, $mime_drivers_map)) {
        echo "returning false early<br/>\n";
        return false;
    }

and so for Orator (which has no mime_drivers), the function never gets
down to where it calls itself with 'horde'.  So does that then imply that
an application always needs to have a mime_drivers configuration file,
even if it has no drivers (because it uses Horde's exclusively)?  Thanks
for helping me understand how this is supposed to work; I'll proceed with
outfitting Orator appropriately as needed once I'm sure I'm on the right
track.

-- 
Brent J. Nordquist <brent at nordist.net> N0BJN
Other contact information: http://www.nordist.net/contact.html



More information about the dev mailing list