Closed (fixed)
Project:
Welcoming Websites Wizard
Version:
6.x-1.0
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2009 at 23:17 UTC
Updated:
24 Jun 2009 at 03:35 UTC
I just installed wwwizard (it's great!) and found that the "wizard" image was not displaying in the footer. The code in
sites/all/modules/wwwizard_modules/modules/wwwizard_display/wwwizard_display.module
was this
$img_src = base_path() . '/' . drupal_get_path('module', 'wwwizard_display') . '/poweredby.png';
In my case, base_path must be '/', because the image url was being written as "//sites/..."
I made this change and it seemed to fix things:
else if ($op == 'view') {
switch($delta) {
case 'poweredby':
$img_src = base_path() . (base_path()=='/' ? '' : '') . drupal_get_path('module', 'wwwizard_display') . '/poweredby.png';
Comments
Comment #1
shaisachs commentedThanks! Unfortunately, I overlooked this just before the commit. I believe the correct code is
base_path() . drupal_get_path('module', 'wwwizard_display') . '/poweredby.png'... which covers both root directory and subdirectory cases, it was just a goof on my part. It'll be fixed in the next release.