Bug 28955: (follow-up) Set to fall back
[srvgit] / C4 / Auth.pm
index d5eec4b..eb6e434 100644 (file)
@@ -451,10 +451,10 @@ sub get_template_and_user {
             $template->param(
                 some_public_shelves  => $some_public_shelves,
             );
-        }
 
-        # Set default branch if one has been passed by the environment.
-        $template->param( branchcode => $ENV{OPAC_BRANCH_DEFAULT} ) if $ENV{OPAC_BRANCH_DEFAULT};
+            # Set default branch if one has been passed by the environment.
+            $template->param( default_branch => $ENV{OPAC_BRANCH_DEFAULT} ) if $ENV{OPAC_BRANCH_DEFAULT};
+        }
     }
 
     # Sysprefs disabled via URL param