Closed (fixed)
Project:
Disclaimer
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Sep 2010 at 17:21 UTC
Updated:
5 Oct 2010 at 09:50 UTC
In disclaimer.module in the function _disclaimer_get_content() around line 109-110 we have...
$enter = theme('image', 'files/'. variable_get('disclaimer_enter_img', 'enter.png'), $enter_alt, $enter_alt);
$exit = theme('image', 'files/'. variable_get('disclaimer_exit_img', 'exit.png'), $exit_alt, $exit_alt);
This will not work unless your files folder is in the root directory of your drupal installation (which is against the best practice guidelines). The code should be changed to the following or not have it at all to let the user type in any URL...
$enter = theme('image', file_directory_path().'/'. variable_get('disclaimer_enter_img', 'enter.png'), $enter_alt, $enter_alt);
$exit = theme('image', file_directory_path().'/'. variable_get('disclaimer_exit_img', 'exit.png'), $exit_alt, $exit_alt);
Thanks
Will
Comments
Comment #1
mogtofu33 commentedHi,
Thanks for the fix, set on 6.x-1.6 release.
Mog