From 1c7f13e7375cde6cc3abb160ea4d47286792b7d9 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 5 Oct 2023 19:46:56 +0700 Subject: [PATCH] Minor improvements (#953) --- .gitignore | 4 +++- library/includes/datastore/build_cat_forums.php | 4 ++-- src/Legacy/Atom.php | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 28b3f9f62..7cafde02f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ -### TorrentPier ### +### IDE ### .idea + +### TorrentPier ### .env .php_cs.cache composer.phar diff --git a/library/includes/datastore/build_cat_forums.php b/library/includes/datastore/build_cat_forums.php index c91da62eb..8523bc5e5 100644 --- a/library/includes/datastore/build_cat_forums.php +++ b/library/includes/datastore/build_cat_forums.php @@ -107,8 +107,8 @@ $this->store('cat_forums', $data); // jumpbox // $data = [ - 'guest' => get_forum_select('guest', 'f', null, null, null, 'id="jumpbox" onchange="window.location.href=\'viewforum.php?f=\'+this.value;"'), - 'user' => get_forum_select('user', 'f', null, null, null, 'id="jumpbox" onchange="window.location.href=\'viewforum.php?f=\'+this.value;"'), + 'guest' => get_forum_select('guest', 'f', null, null, null, 'id="jumpbox" onchange="window.location.href=\'' . FORUM_URL . '\'+this.value;"'), + 'user' => get_forum_select('user', 'f', null, null, null, 'id="jumpbox" onchange="window.location.href=\'' . FORUM_URL . '\'+this.value;"'), ]; $this->store('jumpbox', $data); diff --git a/src/Legacy/Atom.php b/src/Legacy/Atom.php index 7fe0864f0..d0fc66782 100644 --- a/src/Legacy/Atom.php +++ b/src/Legacy/Atom.php @@ -221,7 +221,7 @@ class Atom $atom .= " \n"; $atom .= " " . $date . "T$time+00:00\n"; $atom .= " tag:rto.feed," . $date . ":/t/$topic_id\n"; - $atom .= " \n"; + $atom .= " \n"; $atom .= "\n"; } $atom .= "";