X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=76ef4a034e2a939923cd5615d0ad74581086cb44;hb=c9b17a86f4d62b50b8b1fbe6f9d88e6092430526;hp=23faa7a6a468b4e6c9bc05e1d3d8dc4cdeddc20a;hpb=c8d76610eb94093d4eed4fcd8a6cb72e74c8f6d8;p=mailer.git diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 23faa7a6a4..76ef4a034e 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -1317,7 +1317,7 @@ function isRandomReferalIdEnabled () { // Do we have cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it - $GLOBALS[__FUNCTION__] = (getConfig('select_user_zero_refid') == 'Y'); + $GLOBALS[__FUNCTION__] = ((isExtensionInstalledAndNewer('user', '0.3.4')) && (getConfig('select_user_zero_refid') == 'Y')); } // END - if // Return cache @@ -1336,6 +1336,18 @@ function getDefaultLanguage () { return $GLOBALS[__FUNCTION__]; } +// "Getter" for default referal id +function getDefRefid () { + // Do we have cache? + if (!isset($GLOBALS[__FUNCTION__])) { + // Determine it + $GLOBALS[__FUNCTION__] = getConfig('def_refid'); + } // END - if + + // Return cache + return $GLOBALS[__FUNCTION__]; +} + // "Getter" for path function getPath () { // Do we have cache? @@ -1493,11 +1505,11 @@ function getTitle () { } // "Getter" for curr_svn_revision -function getCurrSvnRevision () { +function getCurrentRepositoryRevision () { // Do we have cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it - $GLOBALS[__FUNCTION__] = getConfig('CURR_SVN_REVISION'); + $GLOBALS[__FUNCTION__] = getConfig('CURRENT_REPOSITORY_REVISION'); } // END - if // Return cache