Skip to content

Commit

Permalink
don't hide header if hide-hf=false
Browse files Browse the repository at this point in the history
  • Loading branch information
cburroughs committed Mar 6, 2013
1 parent a111cbf commit e1dbf41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$data = new Dwoo_Data();
$data->assign("webfrontend_version",$version["webfrontend"]);

if (isset($_GET["hide-hf"])) {
if (isset($_GET["hide-hf"]) && filter_input(INPUT_GET, "hide-hf", FILTER_VALIDATE_BOOLEAN, array("flags" => FILTER_NULL_ON_FAILURE))) {
$data->assign("hide_footer", true);
}

Expand Down
2 changes: 1 addition & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ function make_node_menu($self,
$tpl = new Dwoo_Template_File( template("$header.tpl") );
$data = new Dwoo_Data();

if (isset($_GET["hide-hf"])) {
if (isset($_GET["hide-hf"]) && filter_input(INPUT_GET, "hide-hf", FILTER_VALIDATE_BOOLEAN, array("flags" => FILTER_NULL_ON_FAILURE))) {
$data->assign("hide_header", true);
}

Expand Down

0 comments on commit e1dbf41

Please sign in to comment.