Make sure EOS classes don't exist before declaring
This commit is contained in:
@@ -438,6 +438,7 @@ class eqEOS {
|
|||||||
* @subpackage EOS
|
* @subpackage EOS
|
||||||
* @version 2.0
|
* @version 2.0
|
||||||
*/
|
*/
|
||||||
|
if ( ! class_exists( 'eqGraph' ) ):
|
||||||
class eqGraph extends eqEOS {
|
class eqGraph extends eqEOS {
|
||||||
private $width;
|
private $width;
|
||||||
private $height;
|
private $height;
|
||||||
@@ -601,4 +602,5 @@ class eqGraph extends eqEOS {
|
|||||||
return $this->getImage();
|
return $this->getImage();
|
||||||
}
|
}
|
||||||
} //end class 'eqGraph'
|
} //end class 'eqGraph'
|
||||||
|
endif;
|
||||||
?>
|
?>
|
||||||
@@ -13,10 +13,10 @@ License: GPLv3
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Make sure we don't expose any info if called directly
|
// Make sure we don't expose any info if called directly
|
||||||
if ( !function_exists( 'add_action' ) ) {
|
if ( !function_exists( 'add_action' ) ):
|
||||||
echo 'Hi there! I\'m just a plugin, not much I can do when called directly.';
|
echo 'Hi there! I\'m just a plugin, not much I can do when called directly.';
|
||||||
exit;
|
exit;
|
||||||
}
|
endif;
|
||||||
|
|
||||||
define( 'SPORTSPRESS_VERSION', '0.3.3' );
|
define( 'SPORTSPRESS_VERSION', '0.3.3' );
|
||||||
define( 'SPORTSPRESS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
define( 'SPORTSPRESS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
||||||
@@ -24,6 +24,7 @@ define( 'SPORTSPRESS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
|||||||
define( 'SPORTSPRESS_PLUGIN_FILE', __FILE__ );
|
define( 'SPORTSPRESS_PLUGIN_FILE', __FILE__ );
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
if ( ! class_exists( 'eqEOS' ) )
|
||||||
require_once dirname( __FILE__ ) . '/lib/eos/eos.class.php' ;
|
require_once dirname( __FILE__ ) . '/lib/eos/eos.class.php' ;
|
||||||
|
|
||||||
// Globals
|
// Globals
|
||||||
|
|||||||
Reference in New Issue
Block a user