I am maintaining/upgrading a Drupal 6 website which was originally build by another developer/site builder.
I came across some notes/comments made by previous developer and I was unsure if it was manual bug fix or if the original intent was to customize the website. I am not a developer/coder, so I am unsure if this is a bug. However, I am reporting in case it is a "rare" bug which no one knew about.
Below are the exact comments made by previous developer:
Modification of modules/token/token_actions.module (function token_normalize_context)
Added if statement to existing set of if statements so that user tokens are replaced correctly by the token module (for example, in triggered actions):
if (empty($context['node']) && !empty($context['comment']) && !empty($context['comment']->nid)) { $context['node'] = node_load($context['comment']->nid); }
Comments
Comment #2
Zythyr CreditAttribution: Zythyr commentedComment #3
TR CreditAttribution: TR commentedDrupal 6 EOL was February 24th, 2016 - after that it is no longer supported by the community. There are commercial options available for D6 support if you need it.