Explorar o código

PicoDeprecated: Fix LIB_DIR constant

Daniel Rudolf %!s(int64=9) %!d(string=hai) anos
pai
achega
c3af40c3b9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/00-PicoDeprecated.php

+ 1 - 1
plugins/00-PicoDeprecated.php

@@ -138,7 +138,7 @@ class PicoDeprecated extends AbstractPicoPlugin
         }
         if (!defined('LIB_DIR')) {
             $picoReflector = new ReflectionClass('Pico');
-            define('LIB_DIR', dirname($picoReflector->getFileName() . '/'));
+            define('LIB_DIR', dirname($picoReflector->getFileName()) . '/');
         }
         if (!defined('PLUGINS_DIR')) {
             define('PLUGINS_DIR', $this->getPluginsDir());