use actions

This commit is contained in:
Synox 2018-02-23 21:57:14 +01:00
parent debf73aba4
commit 664edcc1cb
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ $purifier = new HTMLPurifier($purifier_config);
?>
</div>
<div class="col-lg-3 col-md-4 col-sm-12 col-xs-12 random-column">
<a role="button" href="?random=true"
<a role="button" href="?action=random"
class="btn btn-outline-primary col-sm-12 col-xs-12 random-button">Generate
Random</a>
</div>

View File

@ -38,7 +38,7 @@ class Router {
} elseif ($this->action === "delete_email" && isset($this->get_vars['delete_email_id']) && isset($this->get_vars['address'])) {
return new DeleteEmailPage($this->get_vars['delete_email_id'], $this->get_vars['address'], $this->config['domains']);
} elseif (isset($this->get_vars['random'])) {
} elseif ($this->action === 'random') {
return new RedirectToRandomAddressPage($this->config['domains']);
} elseif (empty($this->query_string)) {