Commit 7ae14099 authored by jcnventura's avatar jcnventura

Revert some bad code committed in the fix for #1005956.

parent 5ea4ae62
......@@ -41,6 +41,9 @@ function print_mail_form($form, &$form_state) {
$path = explode('/', $_GET['q']);
unset($path[0]);
$path = implode('/', $path);
if (is_numeric($path)) {
$path = 'node/' . $path;
}
$cid = isset($_GET['comment']) ? (int)$_GET['comment'] : NULL;
$title = _print_get_title($path);
......
......@@ -445,7 +445,7 @@ function print_mail_insert_link($path = NULL, $node = NULL) {
$path = drupal_get_path_alias($path);
}
else {
$path = 'node/' . $nid;
$path = $nid;
}
}
$path = PRINTMAIL_PATH . '/' . $path;
......
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