From 803a3a52a3c1f941d25f67cfba07f807cc74805b Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 27 Jul 2023 01:05:02 +0700 Subject: [PATCH] Minor improvements (#846) --- ajax.php | 2 +- library/ajax/{gen_passkey.php => passkey.php} | 0 src/Ajax.php | 8 ++++---- styles/templates/default/page_header.tpl | 4 ++-- styles/templates/default/usercp_viewprofile.tpl | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) rename library/ajax/{gen_passkey.php => passkey.php} (100%) 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() {