Download & Extend

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

Project:Site Documentation
Version:6.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:NancyDru
Status:closed (fixed)

Issue Summary

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

Comments

#1

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

Assigned to:Anonymous» NancyDru
Status:active» fixed

committed to both branches.

#3

Status:fixed» closed (fixed)

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

nobody click here