$image = theme('image', array(
    'path' => '/misc/watchdog-ok.png',
    'alt' => t('Enabled')
  ));

The slash makes the path relative to DocRoot - if Drupal is not installed in the DocRoot the path to the image is wrong.

CommentFileSizeAuthor
#1 img-path_1840516_1.patch534 bytesvalderama

Comments

valderama’s picture

Status: Active » Needs review
StatusFileSize
new534 bytes
levelos’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

  • Commit 50d18ed on 7.x-1.x, tests, redhen-donation authored by valderama, committed by levelos:
    #1840516 by valderama: Wrong path to image.
    

  • Commit 50d18ed on 7.x-1.x, tests, redhen-donation, relation-roles authored by valderama, committed by levelos:
    #1840516 by valderama: Wrong path to image.