From 91c5ca45ae52c750fd4c97e62665c555e19ca824 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Thu, 26 Jul 2012 15:40:11 +0000 Subject: [PATCH] Modified plugin name for autoload --- src/messenger/tests/webim/libs/classes/EventDispatcherTest.php | 2 +- ...mibew.inc.php => phpunit_autotest_plugin_manager_plugin.php} | 0 src/messenger/webim/libs/classes/plugin_manager.php | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/messenger/tests/webim/libs/classes/phpunit_autotest_plugin_manager/{plugin.mibew.inc.php => phpunit_autotest_plugin_manager_plugin.php} (100%) diff --git a/src/messenger/tests/webim/libs/classes/EventDispatcherTest.php b/src/messenger/tests/webim/libs/classes/EventDispatcherTest.php index 9a144601..915901e5 100644 --- a/src/messenger/tests/webim/libs/classes/EventDispatcherTest.php +++ b/src/messenger/tests/webim/libs/classes/EventDispatcherTest.php @@ -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. diff --git a/src/messenger/tests/webim/libs/classes/phpunit_autotest_plugin_manager/plugin.mibew.inc.php b/src/messenger/tests/webim/libs/classes/phpunit_autotest_plugin_manager/phpunit_autotest_plugin_manager_plugin.php similarity index 100% rename from src/messenger/tests/webim/libs/classes/phpunit_autotest_plugin_manager/plugin.mibew.inc.php rename to src/messenger/tests/webim/libs/classes/phpunit_autotest_plugin_manager/phpunit_autotest_plugin_manager_plugin.php diff --git a/src/messenger/webim/libs/classes/plugin_manager.php b/src/messenger/webim/libs/classes/plugin_manager.php index 8bae5176..bb960d86 100644 --- a/src/messenger/webim/libs/classes/plugin_manager.php +++ b/src/messenger/webim/libs/classes/plugin_manager.php @@ -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