Remove the display of the "body_attributes" div when in debug mode. debug mode is by default set up to add new div's to display the location of the content. "body_attributes" are attributes on the body tag and trying to add content introduces an extra > in the html stream.

This commit is contained in:
Tim Almdal
2010-01-08 12:49:16 -08:00
parent 2ab6eda728
commit bd9f945e3f

View File

@@ -278,9 +278,10 @@ class Theme_View_Core extends Gallery_View {
}
if (Session::instance()->get("debug")) {
if ($function != "head") {
if ($function != "head" && $function != "body_attributes") {
array_unshift(
$blocks, "<div class=\"g-annotated-theme-block g-annotated-theme-block_$function g-clear-fix\">" .
$blocks,
"<div class=\"g-annotated-theme-block g-annotated-theme-block_$function g-clear-fix\">" .
"<div class=\"title\">$function</div>");
$blocks[] = "</div>";
}