}
/**
- * Wrapper function for addPointsThroughReferalSystem(), you should generally
- * avoid this function and use addPointsThroughReferalSystem() directly and add
+ * Wrapper function for addPointsThroughReferralSystem(), you should generally
+ * avoid this function and use addPointsThroughReferralSystem() directly and add
* your special payment method entry to points_data instead.
*
* @param $subject A string-encoded subject for this add
*/
function addPointsDirectly ($subject, $userid, $points) {
// Reset level here
- initReferalSystem();
+ initReferralSystem();
// Call more complicated method (due to more parameters)
- return addPointsThroughReferalSystem($subject, $userid, $points, false, 0, 'DIRECT');
+ return addPointsThroughReferralSystem($subject, $userid, $points, false, 0, 'DIRECT');
}
// Wrapper for redirectToUrl but URL comes from a configuration entry
return $GLOBALS[__FUNCTION__];
}
-// Checks wether random referal id selection is enabled
-function isRandomReferalIdEnabled () {
+// Checks wether random referral id selection is enabled
+function isRandomReferralIdEnabled () {
// Do we have cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
return $GLOBALS[__FUNCTION__];
}
-// "Getter" for default referal id
+// "Getter" for default referral id
function getDefRefid () {
// Do we have cache?
if (!isset($GLOBALS[__FUNCTION__])) {