mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
gsub to sub
This commit is contained in:
parent
b48a767595
commit
7a5865a407
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ class Middleman::CoreExtensions::Internationalization < ::Middleman::Extension
|
|||
File.join(prefix, path.sub(page_id, localized_page_id))
|
||||
)
|
||||
|
||||
path.gsub!(options[:templates_dir] + '/', '')
|
||||
path = path.sub(options[:templates_dir] + '/', '')
|
||||
|
||||
@_localization_data[path] = [lang, path, localized_page_id]
|
||||
|
||||
|
|
Loading…
Reference in a new issue