Commit e53b7714 authored by Michael Stucki's avatar Michael Stucki
Browse files

* Replaced t3lib_div::uniqueArray with native PHP function array_unique. The...

* Replaced t3lib_div::uniqueArray with native PHP function array_unique. The old function will remain for compatibility reasons only. Please do not use it anymore!
* Removed comment about the expired Unisys patent in class.tx_install.php


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@459 709f56b5-9817-0410-a4d7-c38de5d9e867
parent 2fe08be5
2004-09-10 Michael Stucki <mundaun@gmx.ch>
* Replaced t3lib_div::uniqueArray with native PHP function array_unique. The old function will remain for compatibility reasons only. Please do not use it anymore!
* Removed comment about the expired Unisys patent in class.tx_install.php
2004-09-00 Jan-Erik Revsbech <jer@moccompany.com>
* Fixed bug #292 concerning Return path in class.t3lib_mailer.php. The fix has a seperate solution for windows and Unix. The unix fix does however not work with safe_mode enabled. Do not know how to overcome this. Perhaps an environment variable for sendmail can be specified? The fix for windows works OK with safe_mode on since, it does not rely on passing parameter directly to the mailer tranport agent (Sendmail or postfix), but instead sets the php variable sendmail_from, which has no effect on Unix systemt.
......
......@@ -755,7 +755,7 @@ class t3lib_div {
}
$listArray = array_merge($listArray,$in_list);
}
return implode(',',t3lib_div::uniqueArray($listArray));
return implode(',',array_unique($listArray));
}
/**
......@@ -1234,12 +1234,9 @@ class t3lib_div {
}
/**
* Takes a one-dimensional array and returns an array where the values are unique
* The keys in the array are substituted with some md5-hashes
* If the value is trim(empty), the value is ignored.
* Values are trimmed
* (Deprecated, use PHP function array_unique instead)
* Usage: 1
* Remove duplicate values from an array
* This function is deprecated, use the PHP function array_unique instead
* Usage: 0
*
* @param array Array of values to make unique
* @return array
......@@ -1247,17 +1244,7 @@ class t3lib_div {
* @deprecated
*/
function uniqueArray($valueArray) {
$array_out=array();
if (is_array($valueArray)) {
while (list($key,$val)=each($valueArray)) {
$val=trim($val);
if ((string)$val!='') {
$array_out[md5($val)]=$val;
}
}
}
reset($array_out);
return $array_out;
return array_unique($valueArray);
}
/**
......
......@@ -1621,8 +1621,7 @@ From sub-directory:
$msg[0]="You can choose between generating GIF or PNG files, as your GDLib supports both.";
}
if ($this->config_array["gd_gif"]) {
$msg[10]="You should know that generating GIF files are covered by a UNISYS patent. <a target=\"_blank\" href=\"http://www.boutell.com/gd/\">Read more for details.</a>";
$msg[11]="In addition you should watch out for the generated size of the GIF-files because GDLib does not compress them with LZW, but RLE and ImageMagick is subsequently used to compress with LZW. But in the case of ImageMagick failing this task (eg. not being compiled with LZW which is the case with newer versions) you'll end up with GIF-filesizes all too big!
$msg[10]="You should watch out for the generated size of the GIF-files because some versions of the GD library do not compress them with LZW, but RLE and ImageMagick is subsequently used to compress with LZW. But in the case of ImageMagick failing this task (eg. not being compiled with LZW which is the case with some versions) you'll end up with GIF-filesizes all too big!
This install tool tests what kinds of GIF compression are available in the ImageMagick installations by a physical test. You can also check it manually by opening a TYPO3 generated gif-file with Photoshop and save it in a new file. If the file sizes of the original and the new file are almost the same, you're having LZW compression and everything is fine.";
}
if ($this->config_array["gd_png"]) {
......
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