Skip to content

Commit

Permalink
source → source_path
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Jan 8, 2017
1 parent bb3fd70 commit cc6bd52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/compile/rest/__init__.py
Expand Up @@ -88,7 +88,7 @@ def compile_string(self, data, source_path=None, is_two_file=True, post=None):
# To prevent some weird bugs here or there.
# Original issue: empty files. `output` became a bytestring.
output = output.decode('utf-8')
output, shortcode_deps = self.site.apply_shortcodes(output, filename=source, with_dependencies=True, extra_context=dict(post=post))
output, shortcode_deps = self.site.apply_shortcodes(output, filename=source_path, with_dependencies=True, extra_context=dict(post=post))
return output, error_level, deps, shortcode_deps

# TODO remove in v8
Expand Down

0 comments on commit cc6bd52

Please sign in to comment.