use class check to prevent collisions

This commit is contained in:
Jay Wood
2014-11-24 09:11:09 -05:00
parent 30ae6f7c75
commit 486f4b740e

View File

@ -11,7 +11,9 @@ require_once dirname( __FILE__ ) . '/inc/api.php';
if ( is_admin() ){ if ( is_admin() ){
require_once dirname( __FILE__ ) . '/inc/options.inc.php'; require_once dirname( __FILE__ ) . '/inc/options.inc.php';
require_once dirname( __FILE__ ) . '/lib/jw_simple_options/simple_options.php'; if( ! class_exists( 'JW_SIMPLE_OPTIONS' ) ){
require_once dirname( __FILE__ ) . '/lib/jw_simple_options/simple_options.php';
}
require_once dirname( __FILE__ ) . '/class/admin.class.php'; require_once dirname( __FILE__ ) . '/class/admin.class.php';
$cwv3_options = new JW_SIMPLE_OPTIONS( $cwv3_op_data ); $cwv3_options = new JW_SIMPLE_OPTIONS( $cwv3_op_data );