Page 1 of 1

patch in footer.php

Posted: Mon Jan 16, 2006 8:07 pm
by dam
Hello,

My 2 cents.

To solve a server error in listcontent.php, I modified the end of footer.php :

before :

Code: Select all

$htmlresult = str_replace('<!-- THIS IS WHERE HEADER STUFF SHOULD GO -->', $footertext, $htmlresult);
$htmlresult = str_replace('##FORMSUBMITSTUFFGOESHERE##', ' '.$formtext, $htmlresult);
$htmlresult = str_replace('##BODYSUBMITSTUFFGOESHERE##', ' '.$bodytext, $htmlresult);
after :

Code: Select all

if (strlen($footertext)!=0)
	$htmlresult = str_replace('<!-- THIS IS WHERE HEADER STUFF SHOULD GO -->', $footertext, $htmlresult);
if (strlen($formtext)!=0)
	$htmlresult = str_replace('##FORMSUBMITSTUFFGOESHERE##', ' '.$formtext, $htmlresult);
if (strlen($bodytext)!=0)
	$htmlresult = str_replace('##BODYSUBMITSTUFFGOESHERE##', ' '.$bodytext, $htmlresult);
Hope this helps

Re: patch in footer.php

Posted: Tue Jan 17, 2006 3:40 pm
by Ted
Thanks for this.  It's in svn.

Re: patch in footer.php

Posted: Wed Jan 18, 2006 12:37 pm
by dam
You're welcome  ;D