Fix typos found by codespell

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil
2015-02-08 17:52:45 +01:00
parent 909c6a8bdf
commit 0fc73b2bbb
28 changed files with 48 additions and 48 deletions

View File

@@ -260,7 +260,7 @@ Example: {$object->method1($x)->method2($y)}
{for} tag added for looping (replacement for {section} tag):
{for $x=0, $y=count($foo); $x<$y; $x++} .... {/for}
Any number of statements can be used separated by comma as the first
inital expression at {for}.
initial expression at {for}.
{for $x = $start to $end step $step} ... {/for}is in the SVN now .
You can use also

View File

@@ -50,7 +50,7 @@ The escape modifier now knows the $double_encode option, which will
prevent entities from being encoded again.
The capitalize modifier now know the $lc_rest option, which makes sure
all letters following a captial letter are lower-cased.
all letters following a capital letter are lower-cased.
The count_sentences modifier now accepts (.?!) as
legitimate endings of a sentence - previously only (.) was

View File

@@ -784,7 +784,7 @@
- bugfix complete empty inline subtemplates did fail
15/06/2011
- bugfix template variables where not accessable within inline subtemplates
- bugfix template variables where not accessible within inline subtemplates
12/06/2011
- bugfix removed unneeded merging of template variable when fetching includled subtemplates
@@ -1122,7 +1122,7 @@
17/11/2010
- bugfix on {call} with variable function name
- bugfix on {block} if name did contain '-'
- bugfix in function.fetch.php , referece to undefined $smarty
- bugfix in function.fetch.php , reference to undefined $smarty
16/11/2010
- bugfix whitespace in front of "<?php" in smarty_internal_compile_private_block_plugin.php
@@ -1629,7 +1629,7 @@ request_use_auto_globals
- bugfix for custom delimiter at extends resource and {extends} tag
01/05/2010
- bugfix sha1() calculations at extends resource and some general improvments on sha1() handling
- bugfix sha1() calculations at extends resource and some general improvements on sha1() handling
01/03/2010
@@ -1722,7 +1722,7 @@ request_use_auto_globals
- bugfix for {$foo.$x.$y.$z}
12/01/2009
- fixed parsing of names of special formated tags like if,elseif,while,for,foreach
- fixed parsing of names of special formatted tags like if,elseif,while,for,foreach
- removed direct access to constants in templates because of some syntax problems
- removed cache resource plugin for mysql from the distribution
- replaced most hard errors (exceptions) by softerrors(trigger_error) in plugins
@@ -1986,7 +1986,7 @@ NOTICE: existing compiled template and cache files must be deleted
- added global variable SCRIPT_NAME
08/21/2009
- fixed problems whitespace in conjuction with custom delimiters
- fixed problems whitespace in conjunction with custom delimiters
- Smarty tags can now be used as value anywhere
08/18/2009
@@ -2389,7 +2389,7 @@ NOTICE: existing compiled template and cache files must be deleted
12/30/2008
- added compiler support of registered object
- added backtick support in doubled quoted strings for backward compatibility
- some minor bug fixes and improvments
- some minor bug fixes and improvements
12/23/2008
- fixed problem of not working "not" operator in if-expressions

View File

@@ -31,7 +31,7 @@
require_once(dirname(__FILE__) . '/Smarty.class.php');
/**
* Smarty Backward Compatability Wrapper Class
* Smarty Backward Compatibility Wrapper Class
*
* @package Smarty
*/

View File

@@ -203,7 +203,7 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase
}
throw $e;
}
// compiling succeded
// compiling succeeded
if (!$this->source->recompiled && $this->compiler->write_compiled_code) {
// write compiled template
$_filepath = $this->compiled->filepath;

View File

@@ -231,7 +231,7 @@ abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data
if ($this->smarty->debugging) {
Smarty_Internal_Debug::end_render($_template);
}
// write to cache when nessecary
// write to cache when necessary
if (!$_template->source->recompiled && ($_template->caching == Smarty::CACHING_LIFETIME_SAVED || $_template->caching == Smarty::CACHING_LIFETIME_CURRENT)) {
if ($this->smarty->debugging) {
Smarty_Internal_Debug::start_cache($_template);

View File

@@ -388,9 +388,9 @@ class idna_convert
}
/**
* Use this method to get the last error ocurred
* Use this method to get the last error occurred
* @param void
* @return string The last error, that occured
* @return string The last error, that occurred
*/
public function get_last_error()
{
@@ -416,7 +416,7 @@ class idna_convert
$this->_error('The given encoded string was empty');
return false;
}
// Find last occurence of the delimiter
// Find last occurrence of the delimiter
$delim_pos = strrpos($encoded, '-');
if ($delim_pos > self::byteLength($this->_punycode_prefix)) {
for ($k = self::byteLength($this->_punycode_prefix); $k < $delim_pos; ++$k) {
@@ -606,7 +606,7 @@ class idna_convert
// Mapping
// Walking through the input array, performing the required steps on each of
// the input chars and putting the result into the output array
// While mapping required chars we apply the cannonical ordering
// While mapping required chars we apply the canonical ordering
foreach ($input as $v) {
// Map to nothing == skip that code point
if (in_array($v, self::$NP['map_nothing'])) continue;
@@ -743,7 +743,7 @@ class idna_convert
}
/**
* Applies the cannonical ordering of a decomposed UCS4 sequence
* Applies the canonical ordering of a decomposed UCS4 sequence
* @param array Decomposed UCS4 sequence
* @return array Ordered USC4 sequence
*/

View File

@@ -44,10 +44,10 @@ class idna_convert_wrapper
* Encode a domain name, a email address or a list of one of both.
*
* @param string May be either a single domain name, e single email address or a list of one
* seperated either by ',', ';' or ' '.
* separated either by ',', ';' or ' '.
*
* @return string Returns either a single domain name, a single email address or a list of one of
* both seperated by the same string as the input.
* both separated by the same string as the input.
*/
public function encode($to_encode)
@@ -59,10 +59,10 @@ class idna_convert_wrapper
* Decode a domain name, a email address or a list of one of both.
*
* @param string May be either a single domain name, e single email address or a list of one
* seperated either by ',', ';' or ' '.
* separated either by ',', ';' or ' '.
*
* @return string Returns either a single domain name, a single email address or a list of one of
* both seperated by the same string as the input.
* both separated by the same string as the input.
*/
public function decode($to_decode)
@@ -71,7 +71,7 @@ class idna_convert_wrapper
}
/**
* Do the real de- or encoding. First checks if a list is submitted and seperates it. Afterwards sends
* Do the real de- or encoding. First checks if a list is submitted and separates it. Afterwards sends
* each entry to the idna converter to do the converting.
*
* @param string May be either 'decode' or 'encode'.

View File

@@ -45,7 +45,7 @@ class IntegrityCheck {
}
/**
* Check all occuring integrity problems at once
* Check all occurring integrity problems at once
*/
public function checkAll() {
$integrityok = true;
@@ -56,7 +56,7 @@ class IntegrityCheck {
}
/**
* Fix all occuring integrity problems at once with default settings
* Fix all occurring integrity problems at once with default settings
*/
public function fixAll() {
$integrityok = true;

View File

@@ -269,7 +269,7 @@ class phpinterface_fpm {
$is = explode("=", $inisection);
foreach ($this->_ini as $sec => $possibles) {
if (in_array(trim($is[0]), $possibles)) {
// check explictly for open_basedir
// check explicitly for open_basedir
if (trim($is[0]) == 'open_basedir' && $openbasedir == '') {
continue;
}

View File

@@ -435,7 +435,7 @@ return array(
'php-fpm' => array(
'label' => 'PHP-FPM',
'commands' => array(
(Settings::Get('system.webserver') == 'apache2') ? '# add "non-free" after all occurances of "main" in /etc/apt/sources.list' : null,
(Settings::Get('system.webserver') == 'apache2') ? '# add "non-free" after all occurrences of "main" in /etc/apt/sources.list' : null,
(Settings::Get('system.webserver') == 'apache2') ? '# this is needed for libapache2-mod-fastcgi to install' : null,
'apt-get install '.((Settings::Get('system.webserver') == 'apache2') ? 'apache2-suexec libapache2-mod-fastcgi ' : '') . 'php5-fpm',
'rm /etc/php5/fpm/pool.d/www.conf',

View File

@@ -122,7 +122,7 @@ while ($fName = readdir($lockDirHandle)) {
system("kill -CHLD " . (int)$check_pid . " 1> /dev/null 2> /dev/null", $check_pid_return);
if ($check_pid_return == 1) {
// Result: Existing lockfile/pid isnt running
// Result: Existing lockfile/pid isn't running
// Most likely it has died
//
// Action: Remove it and continue
@@ -188,7 +188,7 @@ if (Settings::Get('panel.version') == null
*/
fclose($debugHandler);
unlink($lockfile);
$errormessage = "Version of file doesnt match version of database. Exiting...\n\n";
$errormessage = "Version of file doesn't match version of database. Exiting...\n\n";
$errormessage.= "Possible reason: Froxlor update\n";
$errormessage.= "Information: Current version in database: ".Settings::Get('panel.version')." - version of Froxlor files: ".$version."\n";
$errormessage.= "Solution: Please visit your Foxlor admin interface for further information.\n";

View File

@@ -27,7 +27,7 @@
* @param int $uid the uid which must match the found directories
* @param int $gid the gid which must match the found direcotries
*
* @return array Array of found valid pathes
* @return array Array of found valid paths
*/
function findDirs($path, $uid, $gid) {

View File

@@ -18,14 +18,14 @@
*/
/**
* Returns a valid html tag for the choosen $fieldType for pathes
* Returns a valid html tag for the chosen $fieldType for paths
*
* @param string path The path to start searching in
* @param integer uid The uid which must match the found directories
* @param integer gid The gid which must match the found direcotries
* @param string value the value for the input-field
*
* @return string The html tag for the choosen $fieldType
* @return string The html tag for the chosen $fieldType
*
* @author Martin Burchert <martin.burchert@syscp.de>
* @author Manuel Bernhardt <manuel.bernhardt@syscp.de>

View File

@@ -7,7 +7,7 @@
* @param int $id customer-id
* @param int $adminid target-admin-id
*
* @return true on sucess, error-message on failure
* @return true on success, error-message on failure
*/
function moveCustomerToAdmin($id = 0, $adminid = 0) {
if ($id <= 0 || $adminid <= 0) {

View File

@@ -18,7 +18,7 @@
*/
/**
* Replaces all occurences of variables defined in the second argument
* Replaces all occurrences of variables defined in the second argument
* in the first argument with their values.
*
* @param string The string that should be searched for variables