Commit 63dc60d7 authored by greggles's avatar greggles

#952072 by Dave Reid: [comment:unsubscribe-url] is not working

parent 623f9bde
......@@ -40,7 +40,7 @@ function comment_notify_tokens($type, $tokens, array $data = array(), array $opt
switch ($name) {
case 'unsubscribe-url':
module_load_include('inc', 'comment_notify', 'comment_notify');
if ($hash = comment_notify_get_notify_hash($cid)) {
if ($hash = comment_notify_get_notify_hash($comment->cid)) {
$replacements[$original] = url('comment_notify/disable/' . $hash, $url_options);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment