Kai Schroeder <[EMAIL PROTECTED]> said:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> > I get image src's like
> > /attachment/d2ba2616508a44c17a583c0d286ebadd/12203c9bd75d007a6669e28
> > ef 0b76f98/t0.gif in nadmin.
> > What's wrong there ?
>
> I think, I have found the problem:
>
> attachment url's are declared as /attachment$sitegroupidurl ...
>
> $sitegroupidurl="/".$sitegroupobj->guid(), but I think it must be
> $sitegroupidurl="/".$sitegroupobj->id."/".$sitegroupobj->guid() (see
> table host, /attachment/$sitegroupobj->guid() doesn't exist and
> adding it doesn't work for all attachments).
>
> What's to do to fix this for official release ?
Where was the line you where changing..
This is from hklc_adminsite_host/argv0/image/image - It should correctly set
the sitegroupidurl..
308: if ($argv[1]=="top")
309: {
310: $sitegroupobj= $object->getsitegroup();
311: if ($sitegroupobj) {
312: $sitegroupidurl="/".$sitegroupobj->guid();
313: $sitegroupid=$sitegroupobj->id;
314: } else {
315: $sitegroupidurl="/0";
316: $sitegroupid=0;
317: }
This is one of the lines from hklc_adminsite_host/argv0/image/browse_imageonly
12:
$imgname="/attachment$sitegroupidurl/".$attinfo->guid()."/".urlencode($attinfo->name);
>
> Greetings, Kai
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
>
> iQA/AwUBOsweotJLn8zKm5h2EQIm4gCguUGpQkiyHh1v75rRKzpR/GWx+CwAmwda
> CWZzEuAzoxYTisIiYKr2ByXI
> =V/Kg
> -----END PGP SIGNATURE-----
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
Technical Director
Linux Center (HK) Ltd.
www.hklc.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]