From: Iain Patterson Date: Tue, 9 Apr 2013 19:30:17 +0000 (-0400) Subject: Requester => Referrer. X-Git-Tag: 2013-04-10~9 X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=b0b9828b27e140f88fb0b7867388376b329959cc;p=readifood.git Requester => Referrer. The preferred terminology for someone requesting an order is Referrer rather than Requester. --- diff --git a/lib/constants.php b/lib/constants.php index 06a7c9e..375fe47 100644 --- a/lib/constants.php +++ b/lib/constants.php @@ -4,7 +4,7 @@ $week = array("Sun", "Mon", "Tues", "Wed", "Thu", "Fri", "Sat"); /* Contact roles. */ - $roles = array("Staff", "Driver", "Requester", "Beneficiary", "Donor"); + $roles = array("Staff", "Driver", "Referrer", "Beneficiary", "Donor"); $ROLE_STAFF = 1 << 0; $ROLE_DRIVER = 1 << 1; $ROLE_REQUESTER = 1 << 2; diff --git a/lib/contact.php b/lib/contact.php index 170d342..ccfcd48 100644 --- a/lib/contact.php +++ b/lib/contact.php @@ -50,7 +50,7 @@ $role_string = get_contact_role_string($contact); if ($role_string) echo " $role_string"; if ($role & $GLOBALS['ROLE_DONOR']) printf(" Donations", urlencode($contact->getDisplayname()), $contact->getId()); - if ($role & $GLOBALS['ROLE_REQUESTER']) printf(" Requested", urlencode($contact->getDisplayname()), $contact->getId()); + if ($role & $GLOBALS['ROLE_REQUESTER']) printf(" Referred", urlencode($contact->getDisplayname()), $contact->getId()); if ($role & $GLOBALS['ROLE_BENEFICIARY']) printf(" Orders", urlencode($contact->getDisplayname()), $contact->getId()); if (check_admin(1)) { echo " " . $contact->getDeleteLink(); @@ -433,7 +433,7 @@ $role_string = get_contact_role_string($contact); if ($role_string) echo " $role_string"; if ($role & $GLOBALS['ROLE_DONOR']) printf(" Donations", urlencode($contact->getDisplayname()), $contact->getId()); - if ($role & $GLOBALS['ROLE_REQUESTER']) printf(" Requested", urlencode($contact->getDisplayname()), $contact->getId()); + if ($role & $GLOBALS['ROLE_REQUESTER']) printf(" Referred", urlencode($contact->getDisplayname()), $contact->getId()); if ($role & $GLOBALS['ROLE_BENEFICIARY']) printf(" Orders", urlencode($contact->getDisplayname()), $contact->getId()); if (check_admin(1)) { echo " " . $contact->getDeleteLink(); diff --git a/lib/order.php b/lib/order.php index 8b1bbcd..40b645d 100644 --- a/lib/order.php +++ b/lib/order.php @@ -101,7 +101,7 @@ if (isset($contact_id)) $contact = get_contact_by_id($contact_id); else if ($contact_name) $contact = get_contact_by_name($contact_name); if ($contact) { - echo "

Orders from requester " . $contact->getLink() . ":"; + echo "

Orders from referrer " . $contact->getLink() . ":"; return show_orders($offset, $per_page, $contact->getId(), null, $state_mask); } else echo "

No such contact!

\n"; @@ -247,9 +247,9 @@ echo " "; show_date_form("date", $order->getDate()); echo "\n"; echo "\n"; - /* Requester. */ + /* Referrer. */ echo "\n"; - echo " Requester\n"; + echo " Referrer\n"; echo "