fix(Pico::loadPlugins): use require once to be able to reload Pico

dufraissejeremy 2 years ago
parent 2e5f58f07d
commit 4342526f6d
  1. 2
      lib/Pico.php

@ -654,7 +654,7 @@ class Pico
{
// scope isolated require()
$includeClosure = function ($pluginFile) {
require($pluginFile);
require_once($pluginFile);
};
if (PHP_VERSION_ID >= 50400) {
$includeClosure = $includeClosure->bindTo(null);

Loading…
Cancel
Save