[EventCalendar] Ec3EditForm' is undefined, again...
firetree_ec3 at spamex.com
firetree_ec3 at spamex.com
Thu Nov 1 16:50:47 UTC 2007
I use something quite like it in most of my plugins:
$plugin_root = preg_replace ( "|^.*(/wp-content/plugins/.*/).*$|", ".
$1", __FILE__ );
Note the period before the $1 (I can move my blog around).
On Nov 1, 2007, at 12:09 PM, Alex Tingle wrote:
> * Replies will be sent through Spamex to eventcalendar at firetree.net
> * For additional info click -> http://www.spamex.com/i/?v=17832931
>
> firetree_ec3 at spamex.com wrote:
>> On Oct 31, 2007, at 1:02 PM, Alex Tingle wrote:
>>> Does anyone know of an easy way to auto-detect the installation
>>> directory?
>> Try this:
>> preg_replace ("|^.*(/wp-content/plugins/.*/).*$|", "$1",__FILE__)
>
> Thanks Chris. I've just checked in something along these lines.
> Hopefully that will eliminate a whole class of help requests.
>
> -Alex
>
> --
> :: Let me solve your problems: http://www.firetree.net/consulting/
> :: alex.tingle AT firetree.net +44-7901-552763
>
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar
>
catchall account
More information about the EventCalendar
mailing list