From: Reini U. <ru...@x-...> - 2005-06-13 05:43:51
|
Paul Mennega schrieb: > Sorry, one follow up question... > > When I try to include a file that has a number of pre-defined > functions in it, (I am including thei file at the top of html.tmpl, I > get a bunch of errors when this file is called from other elements I > am including in body.tmpl, etc. > > /include/common.php (In template 'body') (In template 'html'):438: > Notice[8]: Undefined index: MemberName Index of what? > MemberName is actually a cookie, used in a query on line 428 as > $_COOKIE['MemberName']. $_COOKIE is only defined for php > 4.3 $HTTP_COOKIE_VARS is only defined globally, not locally. Inside functions you have to global $HTTP_COOKIE_VARS or use $_COOKIE. > Any ideas what I have done wrong, or are user-defined functions not > executed properly from phpwiki templates? -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ http://phpwiki.org/ |