// Is there cached eval() data?
if ((isset($GLOBALS['template_eval'])) && (count($GLOBALS['template_eval']) > 0)) {
// Now flush all
- foreach ($GLOBALS['template_eval'] as $template => $eval) {
- // Flush the cache (if not yet found)
- flushTemplateCache($template, $eval);
- } // END - if
+ foreach ($GLOBALS['template_eval'] as $prefix => $templateArray) {
+ foreach ($templateArray as $template => $eval) {
+ // Flush the cache (if not yet found)
+ flushTemplateCache($prefix, $template, $eval);
+ } // END - foreach
+ } // END - foreach
} // END - if
}
}
// Filter for sending "build mail" to admin
-function FILTER_SEND_ADMIN_BUILD_MAIL ($filterData) {
- // Is the module 'admin'?
- if (getModule() == 'admin') {
- // Okay, then call the proper function
- call_user_func_array('sendAdminBuildMails', $filterData);
- } // END - if
-
- // Return data
- return $filterData;
-}
-
-// Filter for sending "build mail" to member
-function FILTER_SEND_MEMBER_BUILD_MAIL ($filterData) {
- // Is the module 'login'?
- if (getModule() == 'login') {
- // Okay, then call the proper function
- call_user_func_array('sendMemberBuildMails', $filterData);
- } // END - if
+function FILTER_SEND_BUILD_MAIL ($filterData) {
+ // Was one line updated?
+ //if ($filterData['affected'] == 1) {
+ // Then call the proper function
+ call_user_func_array('sendGenericBuildMails', $filterData);
+ //} // END - if
// Return data
return $filterData;