fix(Pico::loadPlugins): use require once to be able to reload Pico
This commit is contained in:
parent
2e5f58f07d
commit
4342526f6d
@ -654,7 +654,7 @@ class Pico
|
|||||||
{
|
{
|
||||||
// scope isolated require()
|
// scope isolated require()
|
||||||
$includeClosure = function ($pluginFile) {
|
$includeClosure = function ($pluginFile) {
|
||||||
require($pluginFile);
|
require_once($pluginFile);
|
||||||
};
|
};
|
||||||
if (PHP_VERSION_ID >= 50400) {
|
if (PHP_VERSION_ID >= 50400) {
|
||||||
$includeClosure = $includeClosure->bindTo(null);
|
$includeClosure = $includeClosure->bindTo(null);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user