From 3c65fcee68683f32d44ca9c3cab14d248fadea0c Mon Sep 17 00:00:00 2001 From: hukl Date: Thu, 5 Mar 2009 23:32:14 +0100 Subject: more entities translated, refined xpath selector --- app/models/page.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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 tmp_body = "
#{self.body}
" xml_string = XML::Parser.string( tmp_body ) xml_doc = xml_string.parse - links = xml_doc.find("a[not(starts-with(@href, 'http://'))]") + links = xml_doc.find("//a[not(starts-with(@href, 'http://'))]") locales = I18n.available_locales.reject {|l| l == :root} -- cgit v1.3