]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-booking.php
More '0' to NULL and fix for failing extension deprecation if no admin is logged in
[mailer.git] / inc / extensions / ext-booking.php
index 8d649fd4cc00b1dcd4ebd8a7396260ad2fcdd942..01557fa3095680e0a16b542db25bbbf5857f3f78 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -78,7 +78,7 @@ INDEX (`userid`)",
 
                // Add the filters
                registerFilter('post_add_points', 'ADD_BOOKING_RECORD', false, true, isExtensionDryRun());
-               registerFilter('sub_points', 'ADD_BOOKING_RECORD', false, true, isExtensionDryRun());
+               registerFilter('post_sub_points', 'ADD_BOOKING_RECORD', false, true, isExtensionDryRun());
                break;
 
        case 'remove': // Do stuff when removing extension
@@ -88,7 +88,7 @@ INDEX (`userid`)",
 
                // Remove the filters
                unregisterFilter(__FUNCTION__, __LINE__, 'post_add_points', 'ADD_BOOKING_RECORD', true, isExtensionDryRun());
-               unregisterFilter(__FUNCTION__, __LINE__, 'sub_points', 'ADD_BOOKING_RECORD', true, isExtensionDryRun());
+               unregisterFilter(__FUNCTION__, __LINE__, 'post_sub_points', 'ADD_BOOKING_RECORD', true, isExtensionDryRun());
                break;
 
        case 'activate': // Do stuff when admin activates this extension