diff --git a/ajax.php b/ajax.php index 8b595440e..bd8b61997 100644 --- a/ajax.php +++ b/ajax.php @@ -31,7 +31,7 @@ switch ($ajax->action) { case 'mod_action': case 'change_tor_status': case 'change_torrent': - case 'gen_passkey': + case 'passkey': require ATTACH_DIR . '/attachment_mod.php'; break; } diff --git a/library/ajax/gen_passkey.php b/library/ajax/passkey.php similarity index 100% rename from library/ajax/gen_passkey.php rename to library/ajax/passkey.php diff --git a/src/Ajax.php b/src/Ajax.php index fc6c21215..b6311bafc 100644 --- a/src/Ajax.php +++ b/src/Ajax.php @@ -35,7 +35,7 @@ class Ajax 'post_mod_comment' => ['mod'], 'avatar' => ['user'], - 'gen_passkey' => ['user'], + 'passkey' => ['user'], 'change_torrent' => ['user'], 'change_tor_status' => ['user'], 'manage_group' => ['user'], @@ -302,13 +302,13 @@ class Ajax } /** - * Generate passkey actions + * Passkey actions * * @return void */ - public function gen_passkey() + public function passkey() { - require AJAX_DIR . '/gen_passkey.php'; + require AJAX_DIR . '/passkey.php'; } /** diff --git a/styles/templates/default/page_header.tpl b/styles/templates/default/page_header.tpl index 73733d67d..741f01374 100644 --- a/styles/templates/default/page_header.tpl +++ b/styles/templates/default/page_header.tpl @@ -472,7 +472,7 @@ $(document).ready(function() {