Skip to content

Commit

Permalink
Default getUpdatable to both plugins and themes
Browse files Browse the repository at this point in the history
Was modified in #921 and caused an
error in Admin as the signature changed, restore original functionality
by default
  • Loading branch information
flaviocopes committed Jul 4, 2016
1 parent 6a169bf commit a6eef19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/Grav/Common/GPM/GPM.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit a6eef19

Please sign in to comment.