Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The Druplicon in the Garland default theme is broken on all pages other than root (/).
Investigating, looks like logo output is something like:
<img src="files/color/garland-7354b0d8/logo.png" [...]
...which means its relative to current directory.
Seems page.tpl.php needed base_path specified on line 39 as in:
if ($logo) {
print '<img src="'. check_url($base_path) . check_url($logo) .'" alt="'. $site_title .'" id="logo" />';
}
Wohoo! Finally working (via PuTTY) on my dedicated Linux box. The command line is so powerful.
Attached is a patch. Works for me.
Comment | File | Size | Author |
---|---|---|---|
#4 | color.module.logo.patch.txt | 618 bytes | Rok Žlender |
page.tpl.php_1.patch | 583 bytes | DaveNotik | |
Comments
Comment #1
Heine CreditAttribution: Heine commentedhttp://drupal.org/node/92003
Comment #2
DaveNotik CreditAttribution: DaveNotik commentedThat issue opened first, but this one contains more information and a patch. Figured it's best to approve/disapprove this patch.
Comment #3
Tobias Maier CreditAttribution: Tobias Maier commentedi dont think that we need
check_url()
around $base_path, because we dont do that in the other themes:bluemarine: http://api.drupal.org/api/HEAD/file/themes/bluemarine/page.tpl.php/source
pushbutton: http://api.drupal.org/api/HEAD/file/themes/pushbutton/page.tpl.php/source
garland: http://api.drupal.org/api/HEAD/file/themes/garland/page.tpl.php/source
I know that
check_url($base_path)
is already used in this theme, but it could be removed imhoand if you dont like that you could use
base_path()
Comment #4
Rok Žlender CreditAttribution: Rok Žlender commentedIMO this is a color.module problem. Because $logo variable should hold complete path to logo. If you look at bluemarine page.tpl.php it justs prints logo
<img src="<?php print $logo ?>
In color.module there is a function _color_page_alter where $logo is overriden but without base_path(). I think my patch should fix this.
Comment #5
Tobias Maier CreditAttribution: Tobias Maier commentedyou are right
Comment #6
Dries CreditAttribution: Dries commentedCommitted. Thanks!
Comment #7
(not verified) CreditAttribution: commented