浏览代码

PicoDeprecated: Fix LIB_DIR constant

Daniel Rudolf 9 年之前
父节点
当前提交
c3af40c3b9
共有 1 个文件被更改,包括 1 次插入1 次删除
  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());