Working at least

This commit is contained in:
Henrique Dias
2017-07-29 11:02:18 +01:00
parent ae8e97a43e
commit 46fdd869a5
2 changed files with 7 additions and 1 deletions

View File

@@ -117,7 +117,7 @@ func (h Hugo) undraft(file string) error {
type hugo struct{}
func (h hugo) Before(c *filemanager.RequestContext, w http.ResponseWriter, r *http.Request) (int, error) {
o := c.FM.Plugins["hugo"].(Hugo)
o := c.FM.Plugins["hugo"].(*Hugo)
// If we are using the 'magic url' for the settings, we should redirect the
// request for the acutual path.