Having some troubles with function in the API.
When the user does something on the front end of a module you want to bounce the user back to the page from which they came...
However, I get this kind of stuff:
On a call in the module $this->RedirectContent( $resultid );
Smarty error: unable to read resource: db:home?CMSSESSID=847ebf51130a07dccc26fcbf93e0a56f
?CMSSESSID=yadayadayada get tacked at the end and I think it happens in the $content->GetUrl call
Something like this is where it tries to go to.
http://www.petroleumanalyzercompany.com ... 3a39e34c1e
Oddly enough there is GetURL and GetUrl functions throughout the code. Which is it?
Thanks for anyhelp, its for the poll module. Need to bounce the user back to page that they filled in the poll.
Regards,
RedirectContent
RedirectContent
Last edited by brownrl on Thu Oct 20, 2005 9:33 am, edited 1 time in total.
Re: RedirectContent
The redirect code in 0.10.x is a little buggy on certain versions of PHP. I ended up stripping a lot of stuff out. You might want to try grabbing the Redirect function from the latest svn (in lib/misc.functions.php).
As for GetUrl, the one in lib/page.functions.php is old cruft that I didn't get rid of. The ones in the content type classes are the ones that get used.
As for GetUrl, the one in lib/page.functions.php is old cruft that I didn't get rid of. The ones in the content type classes are the ones that get used.