Johan Bernhardsson <[EMAIL PROTECTED]> wrote:

> This is really strange.
> 
> I have to pages in different sitegroups. 

? how?
You mean You have different SG pageswhich uses the same 
snippets from SG0 ?

> The pages are identical (code shown below)
> Pages are active.
> I access the pages with http://site/images/gallery/pic.jpg
> 
> On one site i get the picture
> On the other site i get <html><head></head></html>
> 
> My code: 
> 
> <?
> $topics = mgd_get_topic(17); // topic id changes between sites
> $sitegroup = $topics->getsitegroup();

$topics->sitegroup // should be enough

> $guid = $sitegroup->guid();
> $subgallery = $argv[0];
> $image = $argv[1];
> 
> if($gallery =
> mgd_get_snippetdir_by_path("/GLOBALS/".$guid."/GALLERY/".$subgallery))
>  if(!$gallery->serveattachment($image))
>     $gallery->serveattachment("shim.gif");

  OO <- Big eyes

Piotras


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to