Page 3 of 3
					
				Re: Template Switcher
				Posted: Tue Jan 04, 2011 9:04 am
				by Sonya
				Phoenixsong wrote:
Code: Select all
Fatal error: Cannot redeclare curpageurl() (previously declared in /path/to/htdocs/site/lib/content.functions.php(975) : eval()'d code:4) in /path/to/htdocs/site/lib/content.functions.php(975) : eval()'d code on line 3
 
Yes, this UDT is tested on clean installation 1.9.2 and has no errors. The error you have posted derives from you additional UDT.
 
			
					
				Re: Template Switcher
				Posted: Tue Jan 04, 2011 4:09 pm
				by Sonya
				Phoenixsong wrote:That looks like it's just because of the UDT I was using to set the URL of the current page in a variable
Why don't you use a simple form to send $_REQUEST and reloading active page? See an example 
http://themes.icms.info 
			
					
				Re: Template Switcher
				Posted: Tue Jan 04, 2011 6:09 pm
				by Phoenixsong
				That is something like what I ended up doing, yes. The original UDT was pretty unwieldy anyway. Thanks.