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
This commit is contained in:
Flavio Copes
2016-07-04 14:30:50 +02:00
parent 6a169bf5f4
commit a6eef19297

View File

@@ -174,7 +174,7 @@ class GPM extends Iterator
* @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];