Skip to content

Commit

Permalink
Only hook license & update stuff if we have add-ons active.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed May 23, 2016
1 parent 05c3e93 commit 97c2447
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@

$bootstrapper->admin(function() use( $boxzilla ){
$boxzilla['admin']->init();
$boxzilla['license_manager']->hook();
$boxzilla['update_manager']->hook();

if( count( $boxzilla->plugins ) > 0 ) {
$boxzilla['license_manager']->hook();
$boxzilla['update_manager']->hook();
}
});

$bootstrapper->ajax(function() use( $boxzilla ) {
Expand Down

0 comments on commit 97c2447

Please sign in to comment.