diff options
| author | hukl <contact@smyck.org> | 2009-03-05 23:32:14 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-03-05 23:32:14 +0100 |
| commit | 3c65fcee68683f32d44ca9c3cab14d248fadea0c (patch) | |
| tree | 970aa47f4b3f4951b3b5eb460cc9389671274694 /app/models | |
| parent | a18af410830f9afbc963ec9e0252c29cda53a9da (diff) | |
more entities translated, refined xpath selector
Diffstat (limited to 'app/models')
| -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 | ||
