浏览代码

Force PicoDeprecated to be first plugin in the plugins array

Daniel Rudolf 8 年之前
父节点
当前提交
f4332a247c
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      lib/Pico.php

+ 4 - 0
lib/Pico.php

@@ -667,6 +667,10 @@ class Pico
             }
             }
         };
         };
 
 
+        if (isset($this->plugins['PicoDeprecated'])) {
+            $visitPlugin($this->plugins['PicoDeprecated']);
+        }
+
         foreach ($this->plugins as $plugin) {
         foreach ($this->plugins as $plugin) {
             $visitPlugin($plugin);
             $visitPlugin($plugin);
         }
         }