فهرست منبع

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) {
             $visitPlugin($plugin);
         }