Skip to content

Commit fe5ab0d

Browse files
committed
Fix typos found by codespell
Fix also a grammar issue. Signed-off-by: Stefan Weil <[email protected]>
1 parent 0939d03 commit fe5ab0d

File tree

10 files changed

+26
-26
lines changed

10 files changed

+26
-26
lines changed

index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
redirectTo('index.php', array('showmessage' => '3'));
120120
exit;
121121
} elseif (validatePasswordLogin($userinfo, $password, $table, $uid)) {
122-
// only show "you're banned" if the login was successfull
122+
// only show "you're banned" if the login was successful
123123
// because we don't want to publish that the user does exist
124124
if ($userinfo['deactivated']) {
125125
unset($userinfo);

install/lib/class.FroxlorInstall.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,7 @@ private function _split_sql_file($sql, $delimiter) {
12381238
// this is faster than calling count($tokens) every time through the loop.
12391239
$token_count = count($tokens);
12401240
for ($i = 0; $i < $token_count; $i++) {
1241-
// Don't wanna add an empty string as the last thing in the array.
1241+
// Don't want to add an empty string as the last thing in the array.
12421242
if (($i != ($token_count - 1))
12431243
|| (strlen($tokens[$i] > 0))
12441244
) {

lib/classes/bulk/class.DomainBulkAction.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ private function _addSingleDomainToDatabase($domain_data = array())
301301
), '', $domain_data['aliasdomain']));
302302
// validate alias-domain
303303
if (! validateDomain($domain_data['aliasdomain'])) {
304-
// invalid-domain lol - skip to be sure we dont add anything weird
304+
// invalid-domain lol - skip to be sure we don't add anything weird
305305
return false;
306306
}
307307
// does the domain we want to be an alias of exists?
@@ -409,12 +409,12 @@ private function _addSingleDomainToDatabase($domain_data = array())
409409
// write back iplist
410410
$iplist = implode(",", $result_iplist);
411411

412-
// dont need that for the domain-insert-statement
412+
// don't need that for the domain-insert-statement
413413
unset($domain_data['ips']);
414414

415415
// remember use_ssl value
416416
$use_ssl = (bool)$domain_data['use_ssl'];
417-
// dont need that for the domain-insert-statement
417+
// don't need that for the domain-insert-statement
418418
unset($domain_data['use_ssl']);
419419

420420
// finally ADD the domain to panel_domains
@@ -480,7 +480,7 @@ private function _parseImportFile($separator = ";")
480480
$tmp_arr = explode($separator, $line);
481481
$data_arr = array();
482482
foreach ($tmp_arr as $idx => $data) {
483-
// dont include more fields that the ones we use
483+
// don't include more fields than the ones we use
484484
if ($idx > (count($this->_required_fields) - 4)) // off-by-one + 3 auto-values
485485
break;
486486
$data_arr[$this->_required_fields[$idx]] = $data;

lib/classes/idna/class.idna_convert.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
*
4444
* Unicode input might be given as either UTF-8 string, UCS-4 string or UCS-4 array.
4545
* Unicode output is available in the same formats.
46-
* You can select your preferred format via {@link set_paramter()}.
46+
* You can select your preferred format via {@link set_parameter()}.
4747
*
4848
* ACE input and output is always expected to be ASCII.
4949
*
@@ -79,7 +79,7 @@ class idna_convert {
7979
protected $_scount = 11172; // _lcount * _tcount * _vcount
8080
protected $_error = false;
8181
protected static $_mb_string_overload = null;
82-
// See {@link set_paramter()} for details of how to change the following
82+
// See {@link set_parameter()} for details of how to change the following
8383
// settings from within your script / application
8484
protected $_api_encoding = 'utf8'; // Default input charset is UTF-8
8585
protected $_allow_overlong = false; // Overlong UTF-8 encodings are forbidden
@@ -393,9 +393,9 @@ public function encode_uri($uri)
393393
}
394394

395395
/**
396-
* Use this method to get the last error ocurred
396+
* Use this method to get the last error occurred
397397
* @param void
398-
* @return string The last error, that occured
398+
* @return string The last error, that occurred
399399
*/
400400
public function get_last_error()
401401
{
@@ -421,7 +421,7 @@ protected function _decode($encoded)
421421
$this->_error('The given encoded string was empty');
422422
return false;
423423
}
424-
// Find last occurence of the delimiter
424+
// Find last occurrence of the delimiter
425425
$delim_pos = strrpos($encoded, '-');
426426
if ($delim_pos > self::byteLength($this->_punycode_prefix)) {
427427
for ($k = self::byteLength($this->_punycode_prefix); $k < $delim_pos; ++$k) {
@@ -622,7 +622,7 @@ protected function _nameprep($input)
622622
// Mapping
623623
// Walking through the input array, performing the required steps on each of
624624
// the input chars and putting the result into the output array
625-
// While mapping required chars we apply the cannonical ordering
625+
// While mapping required chars we apply the canonical ordering
626626
foreach ($input as $v) {
627627
// Map to nothing == skip that code point
628628
if (in_array($v, self::$NP['map_nothing'])) {
@@ -646,11 +646,11 @@ protected function _nameprep($input)
646646
$output[] = (int) $out;
647647
}
648648
} elseif (($this->_idn_version == '2003') && isset(self::$NP['replacemaps_2003'][$v])) {
649-
foreach ($this->_apply_cannonical_ordering(self::$NP['replacemaps_2003'][$v]) as $out) {
649+
foreach ($this->_apply_canonical_ordering(self::$NP['replacemaps_2003'][$v]) as $out) {
650650
$output[] = (int) $out;
651651
}
652652
} elseif (($this->_idn_version == '2008') && isset(self::$NP['replacemaps'][$v])) {
653-
foreach ($this->_apply_cannonical_ordering(self::$NP['replacemaps'][$v]) as $out) {
653+
foreach ($this->_apply_canonical_ordering(self::$NP['replacemaps'][$v]) as $out) {
654654
$output[] = (int) $out;
655655
}
656656
} else {
@@ -773,11 +773,11 @@ protected function _get_combining_class($char)
773773
}
774774

775775
/**
776-
* Applies the cannonical ordering of a decomposed UCS4 sequence
776+
* Applies the canonical ordering of a decomposed UCS4 sequence
777777
* @param array Decomposed UCS4 sequence
778778
* @return array Ordered USC4 sequence
779779
*/
780-
protected function _apply_cannonical_ordering($input)
780+
protected function _apply_canonical_ordering($input)
781781
{
782782
$swap = true;
783783
$size = count($input);

lib/classes/webserver/class.ConfigIO.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ private function _cleanAwstatsFiles() {
178178
$awstatsclean['path'] = $this->_getFile('system', 'awstats_conf');
179179

180180
/**
181-
* dont do anyting if the directory not exists
181+
* don't do anything if the directory does not exist
182182
* (e.g. awstats not installed yet or whatever)
183183
* fixes #45
184184
*/
@@ -187,7 +187,7 @@ private function _cleanAwstatsFiles() {
187187
while ($awstatsclean['entry'] = $awstatsclean['dir']->read()) {
188188
$awstatsclean['fullentry'] = makeCorrectFile($awstatsclean['path'].'/'.$awstatsclean['entry']);
189189
/**
190-
* dont do anything if the file does not exist
190+
* don't do anything if the file does not exist
191191
*/
192192
if (@file_exists($awstatsclean['fullentry'])) {
193193
$awstatsclean['fh'] = fopen($awstatsclean['fullentry'], 'r');

lib/configfiles/jessie.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3789,7 +3789,7 @@ MySQLGetQTASZ SELECT panel_customers.diskspace/1024 AS QuotaSize FROM panel_cus
37893789
37903790
# If you're using a transactionnal storage engine, you can enable SQL
37913791
# transactions to avoid races. Leave this commented if you are using the
3792-
# traditionnal MyIsam engine.
3792+
# traditional MyIsam engine.
37933793
37943794
# MySQLTransactions On
37953795
]]>
@@ -4022,7 +4022,7 @@ aliases: files
40224022
<commands index="1">
40234023
<visibility mode="equals" value="apache2">{{settings.system.webserver}}
40244024
</visibility>
4025-
<command><![CDATA[# add "non-free" after all occurances of "main" in /etc/apt/sources.list]]></command>
4025+
<command><![CDATA[# add "non-free" after all occurrences of "main" in /etc/apt/sources.list]]></command>
40264026
<command><![CDATA[# this is needed for libapache2-mod-fastcgi to install]]></command>
40274027
</commands>
40284028
<install>

lib/configfiles/precise.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ aliases: files
15791579
<commands index="1">
15801580
<visibility mode="equals" value="apache2">{{settings.system.webserver}}
15811581
</visibility>
1582-
<command><![CDATA[# add "non-free" after all occurances of "main" in /etc/apt/sources.list]]></command>
1582+
<command><![CDATA[# add "non-free" after all occurrences of "main" in /etc/apt/sources.list]]></command>
15831583
<command><![CDATA[# this is needed for libapache2-mod-fastcgi to install]]></command>
15841584
</commands>
15851585
<install>

lib/configfiles/trusty.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ aliases: files
15731573
<commands index="1">
15741574
<visibility mode="equals" value="apache2">{{settings.system.webserver}}
15751575
</visibility>
1576-
<command><![CDATA[# add "non-free" after all occurances of "main" in /etc/apt/sources.list]]></command>
1576+
<command><![CDATA[# add "non-free" after all occurrences of "main" in /etc/apt/sources.list]]></command>
15771577
<command><![CDATA[# this is needed for libapache2-mod-fastcgi to install]]></command>
15781578
</commands>
15791579
<install>

lib/configfiles/wheezy.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4860,7 +4860,7 @@ MySQLGetQTASZ SELECT panel_customers.diskspace/1024 AS QuotaSize FROM panel_cus
48604860
48614861
# If you're using a transactionnal storage engine, you can enable SQL
48624862
# transactions to avoid races. Leave this commented if you are using the
4863-
# traditionnal MyIsam engine.
4863+
# traditional MyIsam engine.
48644864
48654865
# MySQLTransactions On
48664866
]]>
@@ -5089,7 +5089,7 @@ aliases: files
50895089
<commands index="1">
50905090
<visibility mode="equals" value="apache2">{{settings.system.webserver}}
50915091
</visibility>
5092-
<command><![CDATA[# add "non-free" after all occurances of "main" in /etc/apt/sources.list]]></command>
5092+
<command><![CDATA[# add "non-free" after all occurrences of "main" in /etc/apt/sources.list]]></command>
50935093
<command><![CDATA[# this is needed for libapache2-mod-fastcgi to install]]></command>
50945094
</commands>
50955095
<install>

lib/cron_init.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,10 @@
201201
*/
202202
$cronlog->logAction(CRON_ACTION, LOG_WARNING, 'Automatic update is activated and we are going to proceed without any notices');
203203
$cronlog->logAction(CRON_ACTION, LOG_WARNING, 'all new settings etc. will be stored with the default value, that might not always be right for your system!');
204-
$cronlog->logAction(CRON_ACTION, LOG_WARNING, 'If you dont want this to happen in the future consider removing the --allow-autoupdate flag from the cronjob');
204+
$cronlog->logAction(CRON_ACTION, LOG_WARNING, "If you don't want this to happen in the future consider removing the --allow-autoupdate flag from the cronjob");
205205
fwrite($debugHandler, '*** WARNING *** - Automatic update is activated and we are going to proceed without any notices' . "\n");
206206
fwrite($debugHandler, '*** WARNING *** - all new settings etc. will be stored with the default value, that might not always be right for your system!' . "\n");
207-
fwrite($debugHandler, '*** WARNING *** - If you dont want this to happen in the future consider removing the --allow-autoupdate flag from the cronjob' . "\n");
207+
fwrite($debugHandler, "*** WARNING *** - If you don't want this to happen in the future consider removing the --allow-autoupdate flag from the cronjob\n");
208208
// including update procedures
209209
include_once FROXLOR_INSTALL_DIR.'/install/updatesql.php';
210210
// pew - everything went better than expected

0 commit comments

Comments
 (0)