img src is broken when drupal is not installed on the root url

zimbu668 - July 18, 2008 - 19:52
Project:Site Documentation
Version:6.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:NancyDru
Status:closed
Description

I have an installation of drupal at http://example.com/drupal/ and the img src is incorrect for the ok, warning, and error icons when viewing the sitedoc report at http://example.com/drupal/admin/build/sitedoc. The img src is "/misc/watchdog-warning.png" when it should be "/drupal/misc/watchdog-warning.png".

I'm new to drupal but I changed the hardcoded img srcs in sitedoc.module to use the theme_image() function from the drupal API. I don't know if this is the proper drupaly way to do it or not, but I've attached a patch file in case you are interested.

AttachmentSize
img.patch9.08 KB

#1

NancyDru - August 22, 2008 - 14:16

That is the weirdest looking patch I've ever seen. You should use diff -u -p if at all possible.

And then functions should be named with the module name, such as "_sitedoc_img_ok".

#2

NancyDru - August 22, 2008 - 16:46
Assigned to:Anonymous» NancyDru
Status:active» fixed

committed to both branches.

#3

Anonymous (not verified) - September 5, 2008 - 16:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.