Skip to content

Commit 97c2447

Browse files
Only hook license & update stuff if we have add-ons active.
1 parent 05c3e93 commit 97c2447

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bootstrap.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@
2424

2525
$bootstrapper->admin(function() use( $boxzilla ){
2626
$boxzilla['admin']->init();
27-
$boxzilla['license_manager']->hook();
28-
$boxzilla['update_manager']->hook();
27+
28+
if( count( $boxzilla->plugins ) > 0 ) {
29+
$boxzilla['license_manager']->hook();
30+
$boxzilla['update_manager']->hook();
31+
}
2932
});
3033

3134
$bootstrapper->ajax(function() use( $boxzilla ) {

0 commit comments

Comments
 (0)