Index: emailpage.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/emailpage/emailpage.module,v retrieving revision 1.3.4.2 diff -u -F^f -r1.3.4.2 emailpage.module --- emailpage.module 13 Mar 2006 21:56:31 -0000 1.3.4.2 +++ emailpage.module 6 Nov 2006 19:47:08 -0000 @@ -37,7 +37,7 @@ function theme_emailpage_link($type, $no if($e_l_t) { if($type == 'comment') { $e_l_t = 'comment'; - $links[] = l(t('email this %type', array('%type' => t($e_l_t))), "emailpage&nid=$node->nid&cid=$node->cid", array('title' => EMAILPAGE_TITLE), NULL); + $links[] = l(t('email this %type', array('%type' => t($e_l_t))), 'emailpage', array('title' => EMAILPAGE_TITLE), 'nid='. $node->nid .'&cid='. $node->cid); return $links; } $e_l_t=$node->type; @@ -47,11 +47,12 @@ function theme_emailpage_link($type, $no if($main) { // not on an index page if(variable_get('emailpage_show_on_main', 0)) { - $links[] = l(t('email this %type', array('%type' => t($e_l_t))), "emailpage&nid=$node->nid", array('title' => EMAIL_PAGE_TITLE), NULL); + $links[] = l(t('email this %type', array('%type' => t($e_l_t))), 'emailpage', array('title' => EMAIL_PAGE_TITLE), 'nid='. $node->nid); return $links; } } else { // not on a main page - $links[] = l(t("email this ".$e_l_t), "emailpage&nid=$node->nid", array("title" => EMAILPAGE_TITLE), NULL); return $links; + $links[] = l(t("email this ".$e_l_t), 'emailpage', array("title" => EMAILPAGE_TITLE), 'nid='. $node->nid); + return $links; } } @@ -252,4 +253,4 @@ function emailpage_settings() { } -?> \ No newline at end of file +?>