rename plugin main class files

This commit is contained in:
Andrew Dolgov 2012-12-30 13:36:40 +04:00
parent 0e44c2a0d4
commit e938b1de11
25 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class PluginHost {
foreach ($plugins as $class) {
$class = trim($class);
$class_file = strtolower(basename($class));
$file = dirname(__FILE__)."/../plugins/$class_file/$class_file.php";
$file = dirname(__FILE__)."/../plugins/$class_file/init.php";
if (!isset($this->plugins[$class])) {
if (file_exists($file)) require_once $file;