Index: openacs.org-dev/packages/notifications/tcl/notification-display-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs.org-dev/packages/notifications/tcl/notification-display-procs.tcl,v
diff -u -r1.1.1.1 -r1.1.1.2
--- openacs.org-dev/packages/notifications/tcl/notification-display-procs.tcl 9 Jul 2002 17:35:10 -0000 1.1.1.1
+++ openacs.org-dev/packages/notifications/tcl/notification-display-procs.tcl 5 Aug 2002 21:38:55 -0000 1.1.1.2
@@ -33,7 +33,7 @@
set sub_url [unsubscribe_url -request_id $request_id -url $url]
set sub_chunk "You have requested notification for $pretty_name. You may unsubscribe."
} else {
- set sub_url [subscribe_url -type $type -object_id $object_id -url $url -user_id $user_id]
+ set sub_url [subscribe_url -type $type -object_id $object_id -url $url -user_id $user_id -pretty_name $pretty_name]
set sub_chunk "You may request notification for $pretty_name."
}
@@ -45,11 +45,12 @@
{-object_id:required}
{-url:required}
{-user_id:required}
+ {-pretty_name}
} {
set type_id [notification::type::get_type_id -short_name $type]
set root_path [apm_package_url_from_key [notification::package_key]]
- set subscribe_url "${root_path}request-new?type_id=$type_id&user_id=$user_id&object_id=$object_id&return_url=[ns_urlencode $url]"
+ set subscribe_url "${root_path}request-new?[export_vars { type_id user_id object_id pretty_name {return_url $url} }]"
return $subscribe_url
}