]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
[tests] fix markup to make tests pass.
authorDylan William Hardison <dylan@hardison.net>
Wed, 5 Apr 2017 14:48:53 +0000 (10:48 -0400)
committerDylan William Hardison <dylan@hardison.net>
Wed, 5 Apr 2017 14:49:16 +0000 (10:49 -0400)
index.cgi
template/en/default/global/header.html.tmpl

index 420a162b6fdf20ff939ba294f9f7e8527b9c4a69..7ebc3130ff39c7b1a5781a131ad68d5771111143 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -44,7 +44,11 @@ if ($cgi->param('logout')) {
 
 # our weak etag is based on the bugzilla version parameter (BMO customization) and the announcehtml
 # if either change, the cache will be considered invalid.
-my @etag_parts = (Bugzilla->params->{bugzilla_version}, Bugzilla->params->{announcehtml});
+my @etag_parts = (
+    Bugzilla->params->{bugzilla_version},
+    Bugzilla->params->{announcehtml},
+    Bugzilla->params->{createemailregexp},
+);
 my $weak_etag = q{W/"} . md5_hex(@etag_parts) . q{"};
 my $if_none_match = $cgi->http('If-None-Match');
 
@@ -84,4 +88,4 @@ else {
     # Generate and return the UI (HTML page) from the appropriate template.
     $template->process("index.html.tmpl", $vars)
         or ThrowTemplateError( $template->error() );
-}
\ No newline at end of file
+}
index 07a9800502fbe8d498c710f3d650f95c68eb3192..9d8fa94495cbac3f1282a4c66a03a6c5b066c05a 100644 (file)
           <ul class="login-links">
             [% IF Param('createemailregexp')
                   && user.authorizer.user_can_create_account %]
-              <li id="moz_new_account_container_top"><a href="createaccount.cgi">New&nbsp;Account</a></li>
+              <li id="moz_new_account_container_top"><a href="createaccount.cgi">New&nbsp;Account</a>
+                [% IF use_login_page %] <span class="separator">| </span> [% END %]
+              </li>
             [% END %]
 
             [% IF use_login_page %]
               <li>
-                <span class="separator">| </span>
                 <a href="[% urlbase %]login">Log In</a>
               </li>
             [% ELSE %]