Mikael B�rjesson wrote:

> I have installed midgard, both self-compiled from source and the debian 
> precompiled version,
> and I get the same error with both versions that the php-midgard plugin never 
> seems to execute .mdg files
> 
> I see all the midgards functions with phpinfo(), but I would shurely like to 
> be able to execute .mdg files also.
> 
> It just shows up as a downloadable file of type:
> application/x-httpd-php-midgard

I think the following patch will solve it. If it works, please let me
know and I'll incorporate it.

Emile
Index: mod_midgard.c
===================================================================
RCS file: /usr/local/cvs/midgard/mod/mod_midgard.c,v
retrieving revision 1.99
diff -u -r1.99 mod_midgard.c
--- mod_midgard.c       2001/10/03 06:14:51     1.99
+++ mod_midgard.c       2001/10/04 08:51:48
@@ -1424,6 +1424,11 @@
       return OK;
    }
 
+   if (rcfg->resource.type = MOD_MIDGARD_RESOURCE_FILETEMPLATE) {
+          r->content_type = "application/x-httpd-php";
+      return OK;
+   }
+
    return DECLINED;
 }
 
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to