diff options
Diffstat (limited to 'models/issue_comment_list.go')
-rw-r--r-- | models/issue_comment_list.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/models/issue_comment_list.go b/models/issue_comment_list.go index b80fa129e2..bd1b48f8e5 100644 --- a/models/issue_comment_list.go +++ b/models/issue_comment_list.go @@ -526,20 +526,20 @@ func (comments CommentList) loadAttributes(e db.Engine) (err error) { // LoadAttributes loads attributes of the comments, except for attachments and // comments func (comments CommentList) LoadAttributes() error { - return comments.loadAttributes(db.DefaultContext().Engine()) + return comments.loadAttributes(db.GetEngine(db.DefaultContext)) } // LoadAttachments loads attachments func (comments CommentList) LoadAttachments() error { - return comments.loadAttachments(db.DefaultContext().Engine()) + return comments.loadAttachments(db.GetEngine(db.DefaultContext)) } // LoadPosters loads posters func (comments CommentList) LoadPosters() error { - return comments.loadPosters(db.DefaultContext().Engine()) + return comments.loadPosters(db.GetEngine(db.DefaultContext)) } // LoadIssues loads issues of comments func (comments CommentList) LoadIssues() error { - return comments.loadIssues(db.DefaultContext().Engine()) + return comments.loadIssues(db.GetEngine(db.DefaultContext)) } |