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.
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 CreditAttribution: mogtofu33 commentedHi,
Thanks for the fix, set on 6.x-1.6 release.
Mog