El 4/29/09 3:10 PM, Rudolf Großmann escribió: > Searching for the file Winkelhalbierende.ggb using Special:ListFiles > leads to the page > http://robertfant.com/ProjectWiki/index.php?title=File:Winkelhalbierende.ggb > and there is a link to > http://robertfant.com/ProjectWiki/images/c/cc/Winkelhalbierende.ggb > > But my extension produces this output: > <param name="filename" > value="http://robertfant.com/images/c/cc/Winkelhalbierende.ggb"> > This means, $ggbFile->getURL() results in a string where the leading > "/ProjectWiki" is missing.
$wgUploadUrl is set incorrectly on this site to "images" instead of "/ProjectWiki/images". This relative URL is resolved by the browser from /ProjectWiki/index.php ok, but not by anything else -- your code snippet simply adds a "/" on the front, making it "/images". (Note this will also fail if $wgUploadUrl is a fully-qualified URL, such as on sites which serve their images from a separate domain.) -- brion _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
