diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/models/page.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/page.rb b/app/models/page.rb index 709fa4f..c2e8176 100644 --- a/app/models/page.rb +++ b/app/models/page.rb | |||
| @@ -128,7 +128,7 @@ class Page < ActiveRecord::Base | |||
| 128 | tmp_body = "<div>#{self.body}</div>" | 128 | tmp_body = "<div>#{self.body}</div>" |
| 129 | xml_string = XML::Parser.string( tmp_body ) | 129 | xml_string = XML::Parser.string( tmp_body ) |
| 130 | xml_doc = xml_string.parse | 130 | xml_doc = xml_string.parse |
| 131 | links = xml_doc.find("a[not(starts-with(@href, 'http://'))]") | 131 | links = xml_doc.find("//a[not(starts-with(@href, 'http://'))]") |
| 132 | 132 | ||
| 133 | locales = I18n.available_locales.reject {|l| l == :root} | 133 | locales = I18n.available_locales.reject {|l| l == :root} |
| 134 | 134 | ||
