From 7a5865a4073bde576355d76c86f4227db17e97d4 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Sun, 27 Apr 2014 23:05:18 -0700 Subject: [PATCH] gsub to sub --- middleman-core/lib/middleman-core/core_extensions/i18n.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleman-core/lib/middleman-core/core_extensions/i18n.rb b/middleman-core/lib/middleman-core/core_extensions/i18n.rb index bf7033b3..e83f7cfc 100644 --- a/middleman-core/lib/middleman-core/core_extensions/i18n.rb +++ b/middleman-core/lib/middleman-core/core_extensions/i18n.rb @@ -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]