Commit 9c6d2f04 authored by Michael Stucki's avatar Michael Stucki
Browse files

*** empty log message ***


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@657 709f56b5-9817-0410-a4d7-c38de5d9e867
parent ac2d98c1
......@@ -6,7 +6,7 @@
2005-04-18 Rupert Germann <rupi@gmx.li>
* added a condition that removes wrong default values from autoinc-lines when importing static data. (bug 416 related).
* Added a condition that removes wrong default values from autoinc-lines when importing static data. (bug #416 related).
2005-04-18 Michael Stucki <michael@typo3.org>
......
......@@ -3047,7 +3047,7 @@ if (version == "n3") {
for ($a=0; $a<strlen($string); $a++) {
$out .= '&#'.ord(substr($string, $a, 1)).';';
}
} else {
} else {
for ($a=0; $a<strlen($string); $a++) {
$charValue = ord(substr($string,$a,1));
$charValue+= intval($this->spamProtectEmailAddresses)*($back?-1:1);
......
......@@ -4576,16 +4576,16 @@ A:hover {color: #000066}
}
/**
* [Describe function...]
* Convert a size from human-readable form into bytes
*
* @param [type] $bytes: ...
* @return [type] ...
* @param string A string containing the size in bytes, kilobytes or megabytes. Example: 64M
* @return string The string is returned in bytes and can also hold floating values
*/
function convertByteSize($bytes) {
if (stristr($bytes,"m")) {
$bytes=doubleval($bytes)*1024*1024;
$bytes=floatval($bytes)*1024*1024;
} elseif (stristr($bytes,"k")) {
$bytes=doubleval($bytes)*1024;
$bytes=floatval($bytes)*1024;
}
return $bytes;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment