Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
no functional change
  • Loading branch information
RainRat committed Jan 24, 2024
1 parent 09aba73 commit c8d20f2
Show file tree
Hide file tree
Showing 187 changed files with 291 additions and 291 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/standard_bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ body:
id: additional
attributes:
label: Additional Information
description: Add any refernces, RFCs or other information which may be useful.
description: Add any references, RFCs or other information which may be useful.
2 changes: 1 addition & 1 deletion Sources/Actions/Activate.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Activate implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down
8 changes: 4 additions & 4 deletions Sources/Actions/Admin/ACP.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class ACP implements ActionInterface
* be replaced at runtime with the real values of Config::$scripturl and
* Config::$boardurl.
*
* In this default definintion, all parts of the menu are set as enabled.
* In this default definition, all parts of the menu are set as enabled.
* At runtime, however, various parts may be turned on or off depending on
* the forum's saved settings.
*
Expand Down Expand Up @@ -714,7 +714,7 @@ class ACP implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down Expand Up @@ -1530,7 +1530,7 @@ public static function getFileVersions(array &$versionOptions): array
$header = fread($fp, 4096);
fclose($fp);

// The comment looks rougly like... that.
// The comment looks roughly like... that.
if (preg_match('~\*\s@version\s+(.+)[\s]{2}~i', $header, $match) == 1) {
$version_info['root_versions'][$file] = $match[1];
}
Expand All @@ -1541,7 +1541,7 @@ public static function getFileVersions(array &$versionOptions): array
}
}

// Load all the files in the Sources directory, except some vendor libraires, index place holderes and non php files.
// Load all the files in the Sources directory, except some vendor libraries, index place holders and non php files.
$sources_dir = new \RecursiveIteratorIterator(
new \RecursiveDirectoryIterator(
Config::$sourcedir,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Actions/Admin/AntiSpam.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class AntiSpam implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down
6 changes: 3 additions & 3 deletions Sources/Actions/Admin/Attachments.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class Attachments implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down Expand Up @@ -1847,7 +1847,7 @@ public function paths(): void
}

/**
* Maintance function to move attachments from one directory to another
* Maintenance function to move attachments from one directory to another
*/
public function transfer(): void
{
Expand Down Expand Up @@ -1880,7 +1880,7 @@ public function transfer(): void
}

if (empty($results)) {
// Get the total file count for the progess bar.
// Get the total file count for the progress bar.
$request = Db::$db->query(
'',
'SELECT COUNT(*)
Expand Down
2 changes: 1 addition & 1 deletion Sources/Actions/Admin/Bans.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class Bans implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down
6 changes: 3 additions & 3 deletions Sources/Actions/Admin/Boards.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Boards implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down Expand Up @@ -373,7 +373,7 @@ public function editCategory2(): void
$catOptions['move_after'] = (int) $_POST['cat_order'];
}

// Try and get any valid HTML to BBC first, add a naive attempt to strip it off, htmlspecialchars for the rest
// Try to get any valid HTML to BBC first, add a naive attempt to strip it off, htmlspecialchars for the rest
$catOptions['cat_name'] = Utils::htmlspecialchars(strip_tags($_POST['cat_name']));
$catOptions['cat_desc'] = Utils::htmlspecialchars(strip_tags(BBCodeParser::load()->unparse($_POST['cat_desc'])));
$catOptions['is_collapsible'] = isset($_POST['collapse']);
Expand Down Expand Up @@ -684,7 +684,7 @@ public function editBoard2(): void
ErrorHandler::fatalLang('too_many_groups', false);
}

// Try and get any valid HTML to BBC first, add a naive attempt to strip it off, htmlspecialchars for the rest
// Try to get any valid HTML to BBC first, add a naive attempt to strip it off, htmlspecialchars for the rest
$boardOptions['board_name'] = Utils::htmlspecialchars(strip_tags($_POST['board_name']));
$boardOptions['board_description'] = Utils::htmlspecialchars(strip_tags(BBCodeParser::load()->unparse($_POST['desc'])));

Expand Down
2 changes: 1 addition & 1 deletion Sources/Actions/Admin/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Calendar implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down
2 changes: 1 addition & 1 deletion Sources/Actions/Admin/EndSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class EndSession implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down
2 changes: 1 addition & 1 deletion Sources/Actions/Admin/ErrorLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class ErrorLog implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down
2 changes: 1 addition & 1 deletion Sources/Actions/Admin/Features.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class Features implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down
4 changes: 2 additions & 2 deletions Sources/Actions/Admin/Find.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class Find implements ActionInterface
*
* Load a lot of language files.
*
* MOD AUTHORS: If your mod uses it's own language file for its settings,
* MOD AUTHORS: If your mod uses its own language file for its settings,
* add the language file to this array via the integrate_admin_search hook.
*/
public array $language_files = [
Expand Down Expand Up @@ -148,7 +148,7 @@ class Find implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down
2 changes: 1 addition & 1 deletion Sources/Actions/Admin/Home.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class Home implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down
6 changes: 3 additions & 3 deletions Sources/Actions/Admin/Languages.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Languages implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down Expand Up @@ -1478,7 +1478,7 @@ public static function getConfigVars(): array

/**
* Gets a list of available languages from the mother ship
* Will return a subset if searching, otherwise all avaialble
* Will return a subset if searching, otherwise all available
*
* @return array An array containing information about each available language
*/
Expand Down Expand Up @@ -1542,7 +1542,7 @@ public static function list_getNumLanguages(): int
* Determines which languages are available by looking for the "index.{language}.php" file.
* Also figures out how many users are using a particular language.
*
* @return array An array of information about currenty installed languages
* @return array An array of information about currently installed languages
*/
public static function list_getLanguages(): array
{
Expand Down
2 changes: 1 addition & 1 deletion Sources/Actions/Admin/Logs.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class Logs implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down
2 changes: 1 addition & 1 deletion Sources/Actions/Admin/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class Mail implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down
6 changes: 3 additions & 3 deletions Sources/Actions/Admin/Maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class Maintenance implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down Expand Up @@ -879,7 +879,7 @@ public function rebuildSettings(): void
}

/**
* Empties all uninmportant logs
* Empties all unimportant logs
*/
public function emptyLogs(): void
{
Expand Down Expand Up @@ -1303,7 +1303,7 @@ public function changeMsgBodyLength(): void
Db::$db->change_column('{db_prefix}messages', 'body', ['type' => 'text']);
}

// 3rd party integrations may be interested in knowning about this.
// 3rd party integrations may be interested in knowing about this.
IntegrationHook::call('integrate_convert_msgbody', [$body_type]);

$colData = Db::$db->list_columns('{db_prefix}messages', true);
Expand Down
2 changes: 1 addition & 1 deletion Sources/Actions/Admin/Membergroups.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class Membergroups implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down
2 changes: 1 addition & 1 deletion Sources/Actions/Admin/Members.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class Members implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down
2 changes: 1 addition & 1 deletion Sources/Actions/Admin/Mods.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Mods implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down
2 changes: 1 addition & 1 deletion Sources/Actions/Admin/News.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function addNewsItem ()
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down
4 changes: 2 additions & 2 deletions Sources/Actions/Admin/Permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ class Permissions implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down Expand Up @@ -3530,7 +3530,7 @@ protected static function integrateLoadIllegalPermissions(): void
IntegrationHook::call('integrate_load_illegal_permissions');

// If the hook added anything, sync that back to our master list.
// Because this hook can't tell us what the prerequistes are, we assume
// Because this hook can't tell us what the prerequisites are, we assume
// that the permission can only be granted by admins.
if ($temp != Utils::jsonEncode(self::$illegal)) {
foreach (self::$illegal as $permission) {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Actions/Admin/Posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Posts implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down
2 changes: 1 addition & 1 deletion Sources/Actions/Admin/Registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Registration implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down
2 changes: 1 addition & 1 deletion Sources/Actions/Admin/RepairBoards.php
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ class RepairBoards implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down
4 changes: 2 additions & 2 deletions Sources/Actions/Admin/Reports.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class Reports implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down Expand Up @@ -293,7 +293,7 @@ public function boards(): void
);

while ($row = Db::$db->fetch_assoc($request)) {
// Each board has it's own table.
// Each board has its own table.
$this->newTable($row['name'], '', 'left', 'auto', 'left', '200', 'left');

$this_boardSettings = $boardSettings;
Expand Down
4 changes: 2 additions & 2 deletions Sources/Actions/Admin/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class Search implements ActionInterface
* @var self
*
* An instance of this class.
* This is used by the load() method to prevent mulitple instantiations.
* This is used by the load() method to prevent multiple instantiations.
*/
protected static self $obj;

Expand Down Expand Up @@ -574,7 +574,7 @@ public function createmsgindex(): void
Config::updateModSettings(['search_index' => '']);
}

// Don't let simultanious processes be updating the search index.
// Don't let simultaneous processes be updating the search index.
if (!empty(Config::$modSettings['search_custom_index_config'])) {
Config::updateModSettings(['search_custom_index_config' => '']);
}
Expand Down
Loading

0 comments on commit c8d20f2

Please sign in to comment.