Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #13 from g-Off/fixed-inits
Browse files Browse the repository at this point in the history
Fixed inits again
  • Loading branch information
katbutler authored Nov 22, 2019
2 parents 04aebc6 + 3affcb2 commit e70177c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Liquid/Template.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public final class Template {
public convenience init(sourceURL: URL, encoder: Encoder = Encoder(), environment: Environment = Environment(), translations: [String: String]? = nil) throws {
let source = try String(contentsOf: sourceURL)
let fileSystem = LocalFileSystem(baseURL: sourceURL.deletingLastPathComponent())
self.init(source: source, fileSystem: fileSystem, encoder: encoder, environment: environment)
self.init(source: source, fileSystem: fileSystem, encoder: encoder, environment: environment, translations: translations)
}

public convenience init(source: String, encoder: Encoder = Encoder(), environment: Environment = Environment(), fileSystem: FileSystem? = nil, translations: [String: String]? = nil) {
Expand All @@ -36,7 +36,7 @@ public final class Template {
throw RuntimeError.reason("Invalid filesystem")
}
}
self.init(source: source, fileSystem: fileSystem ?? ThrowingFileSystem(), encoder: encoder, environment: environment)
self.init(source: source, fileSystem: fileSystem ?? ThrowingFileSystem(), encoder: encoder, environment: environment, translations: translations)
}

init(source: String, context: Context) {
Expand Down

0 comments on commit e70177c

Please sign in to comment.