aboutsummaryrefslogtreecommitdiffstats
path: root/mod/contacts.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-07 16:15:54 -0700
committerFriendika <info@friendika.com>2011-08-07 16:15:54 -0700
commit48ffa880f099b19052f18e399bf6af50780a24b0 (patch)
tree48f5e9b52b425af937b5ae2511aaaf6968e0b666 /mod/contacts.php
parentaa3a14ec36db5f9df9d0ec27c607a994451fc845 (diff)
downloadvolse-hubzilla-48ffa880f099b19052f18e399bf6af50780a24b0.tar.gz
volse-hubzilla-48ffa880f099b19052f18e399bf6af50780a24b0.tar.bz2
volse-hubzilla-48ffa880f099b19052f18e399bf6af50780a24b0.zip
cleanup
Diffstat (limited to 'mod/contacts.php')
-rw-r--r--mod/contacts.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/mod/contacts.php b/mod/contacts.php
index 4f5a49acd..f64709ab6 100644
--- a/mod/contacts.php
+++ b/mod/contacts.php
@@ -249,16 +249,16 @@ function contacts_content(&$a) {
$tpl = get_markup_template("contact_edit.tpl");
switch($r[0]['rel']) {
- case REL_BUD:
+ case CONTACT_IS_FRIEND:
$dir_icon = 'images/lrarrow.gif';
$alt_text = t('Mutual Friendship');
break;
- case REL_VIP;
+ case CONTACT_IS_FOLLOWER;
$dir_icon = 'images/larrow.gif';
$alt_text = t('is a fan of yours');
break;
- case REL_FAN;
+ case CONTACT_IS_SHARING;
$dir_icon = 'images/rarrow.gif';
$alt_text = t('you are a fan of');
break;
@@ -368,7 +368,7 @@ function contacts_content(&$a) {
$search = dbesc($search.'*');
$sql_extra .= ((strlen($search)) ? " AND MATCH `name` AGAINST ('$search' IN BOOLEAN MODE) " : "");
- $sql_extra2 = ((($sort_type > 0) && ($sort_type <= REL_BUD)) ? sprintf(" AND `rel` = %d ",intval($sort_type)) : '');
+ $sql_extra2 = ((($sort_type > 0) && ($sort_type <= CONTACT_IS_FRIEND)) ? sprintf(" AND `rel` = %d ",intval($sort_type)) : '');
$r = q("SELECT COUNT(*) AS `total` FROM `contact`
@@ -392,15 +392,15 @@ function contacts_content(&$a) {
continue;
switch($rr['rel']) {
- case REL_BUD:
+ case CONTACT_IS_FRIEND:
$dir_icon = 'images/lrarrow.gif';
$alt_text = t('Mutual Friendship');
break;
- case REL_VIP;
+ case CONTACT_IS_FOLLOWER;
$dir_icon = 'images/larrow.gif';
$alt_text = t('is a fan of yours');
break;
- case REL_FAN;
+ case CONTACT_IS_SHARING;
$dir_icon = 'images/rarrow.gif';
$alt_text = t('you are a fan of');
break;