From 908874635a7bbd3c6bb4290072d029a95071e135 Mon Sep 17 00:00:00 2001 From: David Hicks Date: Fri, 12 Feb 2010 13:05:41 +1100 Subject: [PATCH] Rely on __autoload to find MantisPlugin class There is no need to include the MantisPlugin class file directory - the __autoload functionality in core.php can handle this for us. --- plugins/MantisCoreFormatting/MantisCoreFormatting.php | 2 -- plugins/MantisGraph/MantisGraph.php | 2 -- plugins/XmlImportExport/XmlImportExport.php | 5 ----- 3 files changed, 9 deletions(-) diff --git a/plugins/MantisCoreFormatting/MantisCoreFormatting.php b/plugins/MantisCoreFormatting/MantisCoreFormatting.php index 04dd619463..bab294c9bc 100644 --- a/plugins/MantisCoreFormatting/MantisCoreFormatting.php +++ b/plugins/MantisCoreFormatting/MantisCoreFormatting.php @@ -14,8 +14,6 @@ # You should have received a copy of the GNU General Public License # along with MantisBT. If not, see . -require_once( config_get( 'class_path' ) . 'MantisFormattingPlugin.class.php' ); - class MantisCoreFormattingPlugin extends MantisFormattingPlugin { /** diff --git a/plugins/MantisGraph/MantisGraph.php b/plugins/MantisGraph/MantisGraph.php index 4a49a868a9..695c1141ba 100644 --- a/plugins/MantisGraph/MantisGraph.php +++ b/plugins/MantisGraph/MantisGraph.php @@ -14,8 +14,6 @@ # You should have received a copy of the GNU General Public License # along with MantisBT. If not, see . -require_once( config_get( 'class_path' ) . 'MantisPlugin.class.php' ); - class MantisGraphPlugin extends MantisPlugin { /** diff --git a/plugins/XmlImportExport/XmlImportExport.php b/plugins/XmlImportExport/XmlImportExport.php index 07905a5f94..80c52cb1b2 100644 --- a/plugins/XmlImportExport/XmlImportExport.php +++ b/plugins/XmlImportExport/XmlImportExport.php @@ -23,11 +23,6 @@ * @link http://www.mantisbt.org */ -/** - * requires MantisPlugin.class.php - */ -require_once( config_get( 'class_path' ) . 'MantisPlugin.class.php' ); - /** * XmlImportExportPlugin Class */