Error in front.func.inc.php

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Locked
rushclub
Posts: 915
Joined: Tue 17. Feb 2004, 18:52

Error in front.func.inc.php

Post by rushclub »

I have found a small bug in front.func.inc.php. It concerns the body tag. the code looks like this at the moment:

Code: Select all

		if(!$values["layout_noborder"]) {
			$body .= add_attribute($body, "topmargin", $values["layout_border_top"]);
			$body .= add_attribute($body, "leftmargin", $values["layout_border_left"]);
			$body .= add_attribute($body, "marginwidth", $values["layout_border_right"]);
			$body .= add_attribute($body, "marginheight", $values["layout_border_bottom"]);
but must be look like this to have top- and leftmargin shown up in mozilla browsers:

Code: Select all

		if(!$values["layout_noborder"]) {
			$body .= add_attribute($body, "topmargin", $values["layout_border_top"]);
			$body .= add_attribute($body, "leftmargin", $values["layout_border_left"]);
			$body .= add_attribute($body, "marginwidth", $values["layout_border_left"]);
			$body .= add_attribute($body, "marginheight", $values["layout_border_top"]);
am i right, or do i have understand something wrong?

cheers
rushclub
Locked