initSqls();
// Init exclusion list
+ // @TODO Rewrite these if() blocks to a filter
$EXCLUDE_LIST = '';
if (getConfig('def_refid') > 0) {
$EXCLUDE_LIST = " AND d.userid != ".getConfig('def_refid');
if (isExtensionActive('doubler')) $EXCLUDE_LIST .= " AND d.userid != ".getConfig('doubler_userid')."";
// Check for new holiday extension
- if (getExtensionVersion('holiday') >= '0.1.3') {
+ if (isExtensionInstalledAndNewer('holiday', '0.1.3')) {
// Include only users with no active holiday
$EXCLUDE_LIST .= " AND d.`holiday_active`='N'";
} // END - if