From: Steve Sutton Date: Mon, 25 Apr 2016 18:45:38 +0000 (-0400) Subject: Rearrange the defines in the index page so it will load classes before X-Git-Tag: v1.1.4^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=5a2fdd133684cb9447efa9691e92b16ffe604913;p=WP-Plugins%2Fglm-coupons.git Rearrange the defines in the index page so it will load classes before it tries to setup activate function --- diff --git a/index.php b/index.php index 81ef4d4..dad2351 100644 --- a/index.php +++ b/index.php @@ -21,10 +21,6 @@ define('GLM_COUPON_TAX_CATEGORIES', 'glm_couponscategory'); define('GLM_COUPON_BUILTIN_CAPABILITIES', 'edit_posts'); define('GLM_COUPON_TERM_CAPABILITIES', 'manage_glmcouponterms'); -/* Register Activation or Deactivation hooks - */ -register_activation_hook(__FILE__, array('glm_coupon_admin', 'activate_plugin')); - /** * Required class files */ @@ -32,6 +28,10 @@ require_once 'controllers/admin.php'; require_once 'controllers/front.php'; require_once 'models/coupon.php'; require_once 'models/database.php'; +/* Register Activation or Deactivation hooks + */ +register_activation_hook(__FILE__, array('glm_coupon_admin', 'activate_plugin')); + /** * The Database Setup */