the function similarterms_list($vocid = 0, $nid = NULL) is ignoring $nid >> if you call this makes the funktion useless for advanced themeing. Easy fix: add && !$nid

simiarlterms.module

function similarterms_list($vocid = 0, $nid = NULL) {
  $nodes = array();

  if (arg(0) == 'node' && is_numeric(arg(1))) {
    $nid = arg(1);
  }

  ...
}

If $nid is given use $nid

function similarterms_list($vocid = 0, $nid = NULL) {
  $nodes = array();

  if (arg(0) == 'node' && is_numeric(arg(1)) && !$nid) {
    $nid = arg(1);
  }

  ...
}

Comments

rmiddle’s picture

Status: Active » Reviewed & tested by the community

Will be fixed in next release. This is the 1st time someone has actually used that I guess.

Thanks
Robert

rmiddle’s picture

Status: Reviewed & tested by the community » Fixed

OK committed to both branchs will be in .19

Thanks
Robert

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.