[TYPO3-dam] Folder to Category when indexing
Andy Bernstein
bernstein at barum.de
Fri Nov 24 15:46:21 CET 2006
additional info:
i have php 4.4 installed on my testingserver, so i had to implement a
workaround for the array_diff_key function, which looks like follows:
if (!function_exists('array_diff_key')) {
function array_diff_key() {
$argCount = func_num_args();
$diff_arg_prefix = 'diffArg';
$diff_arg_names = array();
for ($i=0; $i < $argCount; $i++) {
$diff_arg_names[$i] = 'diffArg'.$i;
$$diff_arg_names[$i] = array_keys((array)func_get_arg($i));
}
$diffArrString = '';
if (!empty($diff_arg_names)) $diffArrString = '$'.implode(', $',
$diff_arg_names);
eval("\$result = array_diff(".$diffArrString.");");
return $result;
}
}
i got that from php.net in the function description of array_diff_key
"Stefan Kreisberg" <stefan at nospam-linkfactory.dk> schrieb im Newsbeitrag
news:mailman.1.1164378792.1515.typo3-project-dam at lists.netfielders.de...
> Andy Bernstein wrote:
>
>> Well i just updated the DAM and following extensions from your
>> dam_src-20061121-1.1beta01.zip
>>
>> then i changed the line you mentioned, but what will i say... it doesn't
>> work for me.
>>
>> thats a very frustrating friday for me.
>
> Did you roll on top of existing ext or did you roll out a complete
> new/fresh
> install?
>
> Rgs Stefan
>
>> best regards
>>
>> Andy Bernstein
>>
>> "René Fritz" <r.fritz at colorcube.de> schrieb im Newsbeitrag
>>
> news:mailman.47766.1164375572.30218.typo3-project-dam at lists.netfielders.de...
>>>
>>>> do you have any other idea, where the bug could be?
>>>
>>> Currently not. It might be too much work to investigate it in 1.0. I may
>>> have
>>> a look.
>>>
>>> R
>>>
>>> --
>>> COLORCUBE
>>> digital media lab
>>>
>>> www.colorcube.de
>
> --
>
> vh Stefan Kreisberg, a.k.a. Strato
> ***********************************
> "I went to the hardware store and bought some used paint. It was in
> the shape of a house. I also bought some batteries, but they weren't
> included."
> -- Steven Wright
>
More information about the TYPO3-project-dam
mailing list