diff options
| author | 2014-10-21 10:33:15 -0300 | |
|---|---|---|
| committer | 2014-10-21 10:33:15 -0300 | |
| commit | 5ec02211214350ee558fd9f6bb052264fd24f75e (patch) | |
| tree | b61e8c61a95d18a91d053e71dcbd7b30e47552a1 /nikola/plugins/task/sources.py | |
| parent | 58c4878526dec5510f23c812274686787d8724ba (diff) | |
Imported Upstream version 7.1.0upstream/7.1.0
Diffstat (limited to 'nikola/plugins/task/sources.py')
| -rw-r--r-- | nikola/plugins/task/sources.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nikola/plugins/task/sources.py b/nikola/plugins/task/sources.py index 2324af2..4c669c2 100644 --- a/nikola/plugins/task/sources.py +++ b/nikola/plugins/task/sources.py @@ -60,11 +60,11 @@ class Sources(Task): continue output_name = os.path.join( kw['output_folder'], post.destination_path( - lang, post.source_ext())) - source = post.source_path - dest_ext = self.site.get_compiler(post.source_path).extension() - if dest_ext == post.source_ext(): + lang, post.source_ext(True))) + # do not publish PHP sources + if post.source_ext(True) == post.compiler.extension(): continue + source = post.source_path if lang != kw["default_lang"]: source_lang = utils.get_translation_candidate(self.site.config, source, lang) if os.path.exists(source_lang): |
