From a6eef192979444b25e8511557f4bac2f37d2ee24 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Mon, 4 Jul 2016 14:30:50 +0200 Subject: [PATCH] Default getUpdatable to both plugins and themes Was modified in https://github.com/getgrav/grav/pull/921 and caused an error in Admin as the signature changed, restore original functionality by default --- system/src/Grav/Common/GPM/GPM.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/GPM/GPM.php b/system/src/Grav/Common/GPM/GPM.php index 6affc83c9..b2ab777d8 100644 --- a/system/src/Grav/Common/GPM/GPM.php +++ b/system/src/Grav/Common/GPM/GPM.php @@ -174,7 +174,7 @@ public function countUpdates() * @return array Array of updatable Plugins and Themes. * Format: ['total' => int, 'plugins' => array, 'themes' => array] */ - public function getUpdatable($list_type_update) + public function getUpdatable($list_type_update = ['plugins' => true, 'themes' => true]) { $items = ['total' => 0];