mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-11 01:33:51 -04:00
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:
@@ -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>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user