File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ public function autoload_plugins()
42
42
if (count ($ this ->autoload ['plugins ' ]) > 0 ) {
43
43
foreach ($ this ->autoload ['plugins ' ] as $ plugin ) {
44
44
$ plugin_name = ucfirst ($ plugin );
45
- $ this ->load ->plugin ($ plugin_name );
46
- $ this ->$ plugin = new $ plugin ;
45
+ $ this ->$ plugin = $ this ->load ->plugin ($ plugin_name );
47
46
}
48
47
}
49
48
}
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ public function plugin($plugin, $params = null)
85
85
$ this ->$ plugin = new $ plugin ($ params );
86
86
}
87
87
}
88
+ return $ this ->$ plugin ;
88
89
} elseif (file_exists (SYSTEM_DIR . 'plugins/ ' . ucfirst ($ plugin ) . '/ ' . ucfirst ($ plugin ) . '.php ' ) || file_exists (SYSTEM_DIR . 'plugins/ ' . ucfirst ($ plugin ) . '.php ' )) {
89
90
if (file_exists (SYSTEM_DIR . 'plugins/ ' . ucfirst ($ plugin ) . '/ ' . ucfirst ($ plugin ) . '.php ' )) {
90
91
require_once SYSTEM_DIR . 'plugins/ ' . ucfirst ($ plugin ) . '/ ' . ucfirst ($ plugin ) . '.php ' ;
@@ -101,6 +102,7 @@ public function plugin($plugin, $params = null)
101
102
$ this ->$ plugin = new $ plugin ($ params );
102
103
}
103
104
}
105
+ return $ this ->$ plugin ;
104
106
} else {
105
107
$ code = 1003 ;
106
108
$ text = 'Plugin bulunamadı ' ;
You can’t perform that action at this time.
0 commit comments