diff --git a/themes/default/BoardIndex.template.php b/themes/default/BoardIndex.template.php
index 6af21cd391..082fa549e2 100644
--- a/themes/default/BoardIndex.template.php
+++ b/themes/default/BoardIndex.template.php
@@ -16,7 +16,7 @@
function template_main()
{
- global $context, $settings, $options, $txt, $scripturl, $modSettings;
+ global $context, $settings, $txt, $scripturl;
echo '
diff --git a/themes/default/Calendar.template.php b/themes/default/Calendar.template.php
index 8887f52376..c163c3820d 100644
--- a/themes/default/Calendar.template.php
+++ b/themes/default/Calendar.template.php
@@ -202,7 +202,6 @@ function template_show_month_grid($grid_name)
return false;
$calendar_data = &$context['calendar_grid_' . $grid_name];
- $colspan = !empty($calendar_data['show_week_links']) ? 8 : 7;
if (empty($calendar_data['disable_title']))
{
diff --git a/themes/default/Display.template.php b/themes/default/Display.template.php
index 7c1031969f..82b50a0294 100644
--- a/themes/default/Display.template.php
+++ b/themes/default/Display.template.php
@@ -27,8 +27,8 @@ function template_report_sent_above()
function template_main()
{
- global $context, $settings, $options, $txt, $scripturl, $modSettings;
- // Yeah, I know, though at the moment is the only way...
+ global $context, $settings, $options, $txt, $scripturl;
+ // Yeah, I know, though at the moment is the only way...
global $removableMessageIDs, $ignoredMsgs;
// Show the topic information - icon, subject, etc.
diff --git a/themes/default/GenericControls.template.php b/themes/default/GenericControls.template.php
index 0e6f6c1c52..6a7162a503 100644
--- a/themes/default/GenericControls.template.php
+++ b/themes/default/GenericControls.template.php
@@ -225,7 +225,7 @@ function spellCheckStart(fieldName)
// What's this, verification?!
function template_control_verification($verify_id)
{
- global $context, $settings, $options, $txt, $modSettings;
+ global $context;
$verify_context = &$context['controls']['verification'][$verify_id];
diff --git a/themes/default/ManageMaintenance.template.php b/themes/default/ManageMaintenance.template.php
index e8e17d4486..28abffbb8b 100644
--- a/themes/default/ManageMaintenance.template.php
+++ b/themes/default/ManageMaintenance.template.php
@@ -19,7 +19,7 @@
*/
function template_maintain_database()
{
- global $context, $settings, $txt, $scripturl, $db_type;
+ global $context, $settings, $txt, $scripturl;
// If maintenance has finished tell the user.
if (!empty($context['maintenance_finished']))
diff --git a/themes/default/ManagePaid.template.php b/themes/default/ManagePaid.template.php
index 8289cb43eb..b50ff73767 100644
--- a/themes/default/ManagePaid.template.php
+++ b/themes/default/ManagePaid.template.php
@@ -139,7 +139,7 @@ function template_modify_subscription()