summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-21 11:52:06 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-01-21 11:52:06 -0500
commit0824bb2e1df68fd6634ca915e4c87664ee2ef872 (patch)
tree690a016561e9c4012871dbad7434a7341ef33fdf /lib/util.php
parent4491e82762e498a02ec4f8a9f6c98cc194071e1f (diff)
parent92e2f3babc89863518b8711a1b62661752d806f5 (diff)
Merge branch 'master' into groups
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/util.php b/lib/util.php
index 56fbc29f5..4d4a3b20f 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1665,25 +1665,6 @@ function common_nudge_response()
common_element('p', array('id' => 'nudge_response'), _('Nudge sent!'));
}
-// XXX: Refactor this code
-function common_profile_new_message_nudge ($cur, $profile)
-{
- $user = User::staticGet('id', $profile->id);
-
- if ($cur && $cur->id != $user->id && $cur->mutuallySubscribed($user)) {
- common_element_start('li', array('id' => 'profile_send_a_new_message'));
- common_element('a', array('href' => common_local_url('newmessage', array('to' => $user->id))),
- _('Send a message'));
- common_element_end('li');
-
- if ($user->email && $user->emailnotifynudge) {
- common_element_start('li', array('id' => 'profile_nudge'));
- common_nudge_form($user);
- common_element_end('li');
- }
- }
-}
-
function common_cache_key($extra)
{
return 'laconica:' . common_keyize(common_config('site', 'name')) . ':' . $extra;