Skip to content

Commit

Permalink
Dev: Add support for disabling extension updater
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Oct 8, 2018
1 parent 4399b94 commit 82b1b96
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/core/plugins/Authwebserver/config.xml
Expand Up @@ -17,4 +17,7 @@
<version>3.0</version>
<version>2.73</version>
</compatibility>

<updaters disabled="disabled">
</updaters>
</config>
5 changes: 5 additions & 0 deletions application/models/ExtensionConfig.php
Expand Up @@ -146,6 +146,11 @@ public function createVersionFetchers()
);
}

// Don't create any fetchers if updaters are disabled.
if ((string) $this->xml->updaters['disabled'] === 'disabled') {
return [];
}

$fetchers = [];

$service = \Yii::app()->versionFetcherServiceLocator;
Expand Down

0 comments on commit 82b1b96

Please sign in to comment.