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()
'; - //!! Removed until implemented + /** Removed until implemented if (!empty($sdflsdhglsdjgs)) echo '
@@ -150,7 +150,7 @@ function template_modify_subscription()
'; - + */ echo '
', $txt['paid_mod_price_breakdown'], '
diff --git a/themes/default/MessageIndex.template.php b/themes/default/MessageIndex.template.php index e4137e3bad..e9981c3fd7 100644 --- a/themes/default/MessageIndex.template.php +++ b/themes/default/MessageIndex.template.php @@ -19,7 +19,7 @@ */ function template_main() { - global $context, $settings, $options, $scripturl, $modSettings, $txt; + global $context, $settings, $options, $scripturl, $txt; if (!$context['no_topic_listing']) { diff --git a/themes/default/Post.template.php b/themes/default/Post.template.php index cd7af67373..cc4083bfbb 100644 --- a/themes/default/Post.template.php +++ b/themes/default/Post.template.php @@ -19,7 +19,7 @@ */ function template_main() { - global $context, $settings, $options, $txt, $scripturl, $modSettings, $counter; + global $context, $settings, $options, $txt, $modSettings; // Show the actual posting area... echo ' @@ -152,7 +152,7 @@ function template_main() function template_load_drafts_below() { - global $context, $settings, $txt, $modSettings, $options; + global $context, $settings, $txt, $options; // If the admin enabled the drafts feature, show a draft selection box if (!empty($options['drafts_show_saved_enabled'])) @@ -304,7 +304,7 @@ function template_topic_replies_below() function template_postarea_above() { - global $context, $scripturl, $txt; + global $context, $scripturl, $txt, $modSettings; // Start the javascript... echo ' diff --git a/themes/default/Reports.template.php b/themes/default/Reports.template.php index 0ea4218d39..da74ab0d29 100644 --- a/themes/default/Reports.template.php +++ b/themes/default/Reports.template.php @@ -220,7 +220,7 @@ function template_print() // Shaded? if ($column_number == 0 && !empty($table['shading']['left'])) echo ' - + ', $data['v'] == $table['default_value'] ? '' : ($data['v'] . (empty($data['v']) ? '' : ':')), ' '; else diff --git a/themes/default/scripts/PersonalMessage.js b/themes/default/scripts/PersonalMessage.js index dd25434cf1..36222a6b0b 100644 --- a/themes/default/scripts/PersonalMessage.js +++ b/themes/default/scripts/PersonalMessage.js @@ -266,7 +266,7 @@ function addCriteriaOption() if (document.forms.addrule.elements[i].id.substr(0, 8) == "ruletype") criteriaNum++; } - criteriaNum++ + criteriaNum++; // group selections var group_option = ''; @@ -284,7 +284,7 @@ function addActionOption() if (document.forms.addrule.elements[i].id.substr(0, 7) == "acttype") actionNum++; } - actionNum++ + actionNum++; // Label selections var label_option = ''; @@ -292,4 +292,4 @@ function addActionOption() label_option += ''; setOuterHTML(document.getElementById("actionAddHere"), '
 '); -} +} \ No newline at end of file diff --git a/themes/default/scripts/admin.js b/themes/default/scripts/admin.js index 8a3f504bc0..31c6eae173 100644 --- a/themes/default/scripts/admin.js +++ b/themes/default/scripts/admin.js @@ -683,7 +683,7 @@ function testFTP() 2: "ftp_username", 3: "ftp_password", 4: "ftp_path" - } + }; var sPostData = ""; for (i = 0; i < 5; i++) diff --git a/themes/default/scripts/post.js b/themes/default/scripts/post.js index 1dcb05b7ab..408c132ec4 100644 --- a/themes/default/scripts/post.js +++ b/themes/default/scripts/post.js @@ -328,9 +328,9 @@ function addPollOption() pollTabIndex = document.forms[form_name].elements[i].tabIndex; } } - pollOptionNum++ - pollOptionId++ - pollTabIndex++ + pollOptionNum++; + pollOptionId++; + pollTabIndex++; setOuterHTML(document.getElementById('pollMoreOptions'), '
  • :
  • '); } diff --git a/themes/default/scripts/script.js b/themes/default/scripts/script.js index b84c991813..dde6eccde3 100644 --- a/themes/default/scripts/script.js +++ b/themes/default/scripts/script.js @@ -132,7 +132,7 @@ String.prototype.php_to8bit = function () { n = this.charCodeAt(i); if (n < 128) - sReturn += String.fromCharCode(n) + sReturn += String.fromCharCode(n); else if (n < 2048) sReturn += String.fromCharCode(192 | n >> 6) + String.fromCharCode(128 | n & 63); else if (n < 65536) @@ -242,7 +242,7 @@ String.prototype.php_to8bit = function () sReturn += iOffsetFrom > -1 ? this.oCharsetConversion.to.charAt(iOffsetFrom) : (this.charCodeAt(i) > 127 ? '&#' + this.charCodeAt(i) + ';' : this.charAt(i)); } - return sReturn + return sReturn; } // Character-level replacement function. @@ -816,7 +816,7 @@ smc_Toggle.prototype.init = function () this.oCookie = new smc_Cookie({}); // Check if the cookie is set. - var cookieValue = this.oCookie.get(this.opt.oCookieOptions.sCookieName) + var cookieValue = this.oCookie.get(this.opt.oCookieOptions.sCookieName); if (cookieValue != null) this.opt.bCurrentlyCollapsed = cookieValue == '1'; } diff --git a/themes/default/scripts/sha1.js b/themes/default/scripts/sha1.js index fd20bcc2c0..fab3b45a07 100644 --- a/themes/default/scripts/sha1.js +++ b/themes/default/scripts/sha1.js @@ -213,5 +213,4 @@ function binb2b64(binarray) } } return str; -} - +} \ No newline at end of file