Make sure EOS classes don't exist before declaring
This commit is contained in:
@@ -438,7 +438,8 @@ class eqEOS {
|
|||||||
* @subpackage EOS
|
* @subpackage EOS
|
||||||
* @version 2.0
|
* @version 2.0
|
||||||
*/
|
*/
|
||||||
class eqGraph extends eqEOS {
|
if ( ! class_exists( 'eqGraph' ) ):
|
||||||
|
class eqGraph extends eqEOS {
|
||||||
private $width;
|
private $width;
|
||||||
private $height;
|
private $height;
|
||||||
//GD Image reference
|
//GD Image reference
|
||||||
@@ -600,5 +601,6 @@ class eqGraph extends eqEOS {
|
|||||||
public function outGD() {
|
public function outGD() {
|
||||||
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,7 +24,8 @@ define( 'SPORTSPRESS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
|||||||
define( 'SPORTSPRESS_PLUGIN_FILE', __FILE__ );
|
define( 'SPORTSPRESS_PLUGIN_FILE', __FILE__ );
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
require_once dirname( __FILE__ ) . '/lib/eos/eos.class.php' ;
|
if ( ! class_exists( 'eqEOS' ) )
|
||||||
|
require_once dirname( __FILE__ ) . '/lib/eos/eos.class.php' ;
|
||||||
|
|
||||||
// Globals
|
// Globals
|
||||||
require_once dirname( __FILE__ ) . '/admin/globals/continents.php';
|
require_once dirname( __FILE__ ) . '/admin/globals/continents.php';
|
||||||
|
|||||||
Reference in New Issue
Block a user