User: robrechtj Branch: DRUPAL-5 Date: Mon, 28 May 2007 08:23:48 +0000 Modified files: /modules/path_image path_image.module Log message: #112978 : we need to use either $_GET['q'] or drupal_get_path_alias() instead of $_SERVER['REDIRECT_URL'] to know the path we are on: - if one has not enabled clean urls, $_SERVER['REDIRECT_URL'] is not set and so it doesn't work as expected. - if Drupal is installed in a subdirectory, $_SERVER['REDIRECT_URL'] will include that directory and so again the path is not what we want. So instead of $_SERVER['REDIRECT_URL'] we now use drupal_get_path_alias(). This is maybe not ideal. I think that checking both $_GET['q'] and the alias would yield the best results. But for now, things are somewhat fixed. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/path_image/path_im...