[pmwiki-users] Conditionnal include on ?action
Nicolas Poulain
nico.poulain at gmail.com
Wed Oct 31 11:08:35 CDT 2007
Nicolas Poulain a écrit :
> Hi list,
>
> The two recipes mimetex or jsMath work very well on my site but i'd like
> to make them work together :
> - While reading pages i'd rather use mimetex to show math contents
> - while ?action=print it would be better that jsMath does the job
>
> I guess there is a way with conditionnal include in local/config but i
> don't find how to write it.
Ok, I answer myself, i should have search better before posting.
The following code works well :
if ($GLOBALS["action"]=="print") {
include_once("$FarmD/cookbook/jsMath.php");
}
else {
include_once("$FarmD/cookbook/mimetex.php");
}
--
Nicolas Poulain
http://exomatik.net
More information about the pmwiki-users
mailing list