From f4332a247cfae4447731993ad5925351f9502d6d Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Sun, 14 May 2017 01:11:16 +0200 Subject: [PATCH] Force PicoDeprecated to be first plugin in the plugins array --- lib/Pico.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Pico.php b/lib/Pico.php index 69be0bd..34ce43d 100644 --- a/lib/Pico.php +++ b/lib/Pico.php @@ -667,6 +667,10 @@ class Pico } }; + if (isset($this->plugins['PicoDeprecated'])) { + $visitPlugin($this->plugins['PicoDeprecated']); + } + foreach ($this->plugins as $plugin) { $visitPlugin($plugin); }