From 50e73113905df8b424822ce68df89bba87b0a6a5 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Tue, 16 Feb 2016 21:56:32 +0100 Subject: [PATCH] Fix some typos in code comments Most of them were found by codespell. Signed-off-by: Stefan Weil --- admin_autoupdate.php | 4 ++-- lib/classes/ssl/class.lescript.php | 2 +- lib/init.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin_autoupdate.php b/admin_autoupdate.php index 4e340d97..87f6a462 100644 --- a/admin_autoupdate.php +++ b/admin_autoupdate.php @@ -97,7 +97,7 @@ if ($page == 'overview') { // download the new archive elseif ($page == 'getdownload') { - // retreive the new version from the form + // retrieve the new version from the form $newversion = isset($_POST['newversion']) ? $_POST['newversion'] : null; // valid? @@ -193,7 +193,7 @@ elseif ($page == 'extract') { // display error elseif ($page == 'error') { - // retreive error-number via url-parameter + // retrieve error-number via url-parameter $errno = isset($_GET['errno']) ? (int)$_GET['errno'] : 0; // 1 = no allow_url_fopen diff --git a/lib/classes/ssl/class.lescript.php b/lib/classes/ssl/class.lescript.php index 0f12c98e..ee34c909 100644 --- a/lib/classes/ssl/class.lescript.php +++ b/lib/classes/ssl/class.lescript.php @@ -106,7 +106,7 @@ class lescript throw new RuntimeException("No challenges received for $domain. Whole response: ".json_encode($response)); } - // choose http-01 challange only + // choose http-01 challenge only $challenge = array_reduce($response['challenges'], function($v, $w) { return $v ? $v : ($w['type'] == 'http-01' ? $w : false); }); if(!$challenge) throw new RuntimeException("HTTP Challenge for $domain is not available. Whole response: ".json_encode($response)); diff --git a/lib/init.php b/lib/init.php index 0bdc9341..b2e1dfab 100644 --- a/lib/init.php +++ b/lib/init.php @@ -275,7 +275,7 @@ foreach ($langs as $key => $value) { $languages[$key] = $key; } -// set default langauge before anything else to +// set default language before anything else to // ensure that we can display messages $language = Settings::Get('panel.standardlanguage');