Skip to content

Commit

Permalink
fixup! Use ManifestTheme theme_colour for front page theme-color meta…
Browse files Browse the repository at this point in the history
… tag
  • Loading branch information
davea committed Feb 14, 2020
1 parent 09bf213 commit 67469ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions perllib/FixMyStreet/App/Controller/Admin/ManifestTheme.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ sub auto :Private {
} else {
$c->stash(rs => $c->model('DB::ManifestTheme')->search_rs({ cobrand => $c->cobrand->moniker }));
}
# We need to unset the default manifest_theme from Root::auto, otherwise
# the default icons will appear on our editing form.
delete $c->stash->{manifest_theme};
}

sub index :Path :Args(0) {
Expand Down
4 changes: 2 additions & 2 deletions perllib/FixMyStreet/App/Controller/Root.pm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ sub auto : Private {
$c->forward('check_password_expiry');
$c->detach('/auth/redirect') if $c->cobrand->call_hook('check_login_disallowed');

$c->forward('/offline/_stash_manifest_theme', [ $c->cobrand->moniker ]);

return 1;
}

Expand Down Expand Up @@ -77,8 +79,6 @@ sub index : Path : Args(0) {
$c->detach;
}

$c->forward('/offline/_stash_manifest_theme', [ $c->cobrand->moniker ]);

$c->forward('/auth/get_csrf_token');
}

Expand Down

0 comments on commit 67469ac

Please sign in to comment.