summaryrefslogtreecommitdiff
path: root/system/db/addon.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/db/addon.go')
-rw-r--r--system/db/addon.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/db/addon.go b/system/db/addon.go
index 8607119..b5c4929 100644
--- a/system/db/addon.go
+++ b/system/db/addon.go
@@ -15,6 +15,12 @@ var (
ErrNoAddonExists = errors.New("No addon exists.")
)
+func init() {
+ if store == nil {
+ Init()
+ }
+}
+
// Addon looks for an addon by its addon_reverse_dns as the key and returns
// the url.Values representation of an addon
func Addon(key string) (url.Values, error) {