[web-php] master: Remove broken code (#1663)
| From: | Kamil Tekiela via GitHub | Date: | Thu, 27 Nov 2025 17:25:16 +0000 |
| Subject: | [web-php] master: Remove broken code (#1663) | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-33426@lists.php.net to get a copy of this message | ||
Author: Kamil Tekiela (kamil-tekiela)
Committer: GitHub (web-flow)
Pusher: kamil-tekiela
Date: 2025-11-27T17:25:14Z
Commit: https://github.com/php/web-php/commit/e54f5fe9b7183ec3d66927751bbb24455eb4b607
Raw diff: https://github.com/php/web-php/commit/e54f5fe9b7183ec3d66927751bbb24455eb4b607.diff
Remove broken code (#1663)
Changed paths:
M manual/vote-note.php
Diff:
diff --git a/manual/vote-note.php b/manual/vote-note.php
index fa8de7c7e2..d07689e8ed 100644
--- a/manual/vote-note.php
+++ b/manual/vote-note.php
@@ -57,12 +57,6 @@
$error = "Incorrect answer! Please try again.";
}
else {
- if ($_REQUEST['vote'] === 'up') {
- $N[$_REQUEST['id']]->upvotes++;
- }
- elseif ($_REQUEST['vote'] === 'down') {
- $N[$_REQUEST['id']]->downvotes++;
- }
$hash = substr(md5($_REQUEST['page']), 0, 16);
$notes_file = $_SERVER['DOCUMENT_ROOT'] . "/backend/notes/" .
substr($hash, 0, 2) . "/$hash";
if (file_exists($notes_file)) {