* template/en/default: Fix use_login_page
The implementation fell off in
2e5d910d9401c4fa8f105d8f9502d9e4ea27bb99.
* template/en/default/global/ip-blocked.html.tmpl: Use use_login_page
This fixes the warning "Use of uninitialized value $args[1] in join or
string at .../Bugzilla/Token.pm line 270", and removes the
likely-broken mini login form on the "IP blocked" page.
* index.cgi: Disable use_login_page for the front page
This seems to be only useful for very high-traffic
installations (BMO).
Co-authored-by: Dylan Hardison <dylan@hardison.net>
$vars->{'release'} = Bugzilla::Update::get_notifications();
}
- $vars->{use_login_page} = 1;
-
# Generate and return the UI (HTML page) from the appropriate template.
$template->process("index.html.tmpl", $vars)
or ThrowTemplateError($template->error());
[% END %]
[% script_url = login_target _ connector _ "GoAheadAndLogIn=1" %]
<a id="login_link[% qs_suffix %]" href="[% script_url FILTER html %]"
- class='show_mini_login_form' data-qs-suffix="[% qs_suffix FILTER html %]">Log In</a>
+ [% IF !use_login_page %]
+ class='show_mini_login_form'
+ [% END %]
+ data-qs-suffix="[% qs_suffix FILTER html %]">Log In</a>
+ [% IF !use_login_page %]
<div id="mini_login[% qs_suffix FILTER html %]" class="mini-popup mini_login bz_default_hidden">
[% Hook.process('additional_methods') %]
</a>
</form>
</div>
+ [% END %]
</li>
+[% IF !use_login_page %]
<li id="forgot_container[% qs_suffix %]">
<a id="forgot_link[% qs_suffix %]" href="[% script_url FILTER html %]#forgot"
class='show_forgot_form'
</form>
</div>
</li>
+[% END %]
<ul id="header-login" class="links">
[% PROCESS "account/auth/signup-small.html.tmpl" qs_suffix = "_top" %]
[% IF user.authorizer.can_login %]
- [% PROCESS "account/auth/login-small.html.tmpl" qs_suffix = "_top" %]
+ [% PROCESS "account/auth/login-small.html.tmpl" qs_suffix = "_top" use_login_page = use_login_page %]
[% END %]
</ul>
[% END %]
[% title = "Too Many Requests" %]
[% PROCESS global/header.html.tmpl
+ use_login_page = 1
robots = 'noindex' %]
<h1>[% title FILTER html %]</h1>