Modified plugin name for autoload

This commit is contained in:
Dmitriy Simushev 2012-07-26 15:40:11 +00:00
parent c9ffa8291d
commit 91c5ca45ae
3 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/event_dispatcher.php';
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/plugin.php';
require_once dirname(__FILE__) . '/phpunit_autotest_plugin_manager/plugin.mibew.inc.php';
require_once dirname(__FILE__) . '/phpunit_autotest_plugin_manager/phpunit_autotest_plugin_manager_plugin.php';
/**
* Test class for EventDispatcher.

View File

@ -56,7 +56,7 @@ Class PluginManager {
$plugin_config = isset($plugin['config']) ? $plugin['config'] : array();
$plugin_classname = ucfirst($plugin_name) . "Plugin";
// Try to load plugin file
if (! (include_once $plugin_name."/plugin.mibew.inc.php")) {
if (! (include_once $plugin_name."/".$plugin_name."_plugin.php")) {
trigger_error("Cannot load plugin file!", E_USER_ERROR);
}
// Check plugin class name