diff --git a/Converting-Add-ons-to-Plugins.md b/Converting-Add-ons-to-Plugins.md index 0357b97..9c7ba61 100644 --- a/Converting-Add-ons-to-Plugins.md +++ b/Converting-Add-ons-to-Plugins.md @@ -54,7 +54,7 @@ The setup function does not need to be exported, but you may capitalize it to ex Instead of accessing site config values directly like `c.Root` or `c.Host`, get the config from the HTTP server using the key from the controller: ```go -siteConfig := httpserver.GetConfig(c.Key) +siteConfig := httpserver.GetConfig(c) ``` Instead of adding startup callbacks by appending to `c.Startup` , call `c.OnStartup()` and pass in the function: