From fca78a3a0486a49700dbcd103fd09c4f06313a5a Mon Sep 17 00:00:00 2001
From: PupperWoff
Date: Sat, 24 Jun 2017 20:59:50 +0200
Subject: [PATCH] BugFix - Small BugFix to Archive and Voting (adding line of
text)
---
inc/archive.php | 5 ++---
templates/mod/archive_featured_list.html | 2 +-
templates/mod/archive_list.html | 5 +++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/inc/archive.php b/inc/archive.php
index e8f163dc..124dc26c 100644
--- a/inc/archive.php
+++ b/inc/archive.php
@@ -277,7 +277,6 @@ class Archive {
'config' => $config,
'mod' => false,
'hide_dashboard_link' => true,
- 'board' => $board,
'boardlist' => createBoardList(false),
'title' => $title,
'subtitle' => "",
@@ -322,7 +321,7 @@ class Archive {
// If featuring of threads is turned off return
if(!$config['feature']['threads'])
return;
-
+
// Get featured archived threads
$archive = self::getArchiveList(true);
@@ -337,9 +336,9 @@ class Archive {
'boardlist' => createBoardList(false),
'title' => $title,
'subtitle' => "",
- 'boardlist' => createBoardlist(),
'body' => Element("mod/archive_featured_list.html", array(
'config' => $config,
+ 'board' => $board,
'archive' => $archive
))
));
diff --git a/templates/mod/archive_featured_list.html b/templates/mod/archive_featured_list.html
index f2ed0e17..95be973f 100644
--- a/templates/mod/archive_featured_list.html
+++ b/templates/mod/archive_featured_list.html
@@ -1,7 +1,7 @@
{% if config.archive.threads %}
- [{% trans %}Thread Archive{% endtrans %}]
+ [{% trans %}Board Archive{% endtrans %}]
{% endif %}
diff --git a/templates/mod/archive_list.html b/templates/mod/archive_list.html
index 74476a5f..e9e623b0 100644
--- a/templates/mod/archive_list.html
+++ b/templates/mod/archive_list.html
@@ -9,7 +9,8 @@
{% endif %}
- {% trans 'Displaying' %} {{ thread_count }} {% trans 'expired threads' %}{% if config.archive.lifetime %} {% trans 'from the past' %} {{ config.archive.lifetime }} {% trans 'days' %}{% endif %}
+ {% trans 'Displaying' %} {{ thread_count }} {% trans 'expired threads' %}{% if config.archive.lifetime %} {% trans 'from the past' %} {{ config.archive.lifetime }}{% endif %}
+ Vote for a thread to be added to the featured archive
@@ -80,4 +81,4 @@
{% endfor %}
-
\ No newline at end of file
+