dynarex-blog 0.3.16 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dynarex-blog.rb +1 -1
- metadata +1 -1
data/lib/dynarex-blog.rb
CHANGED
@@ -46,7 +46,7 @@ class DynarexBlog
|
|
46
46
|
|
47
47
|
def entry(id)
|
48
48
|
doc_lookup = @hc_lookup.read(@current_lookup) { Document.new File.open(@file_path + @current_lookup,'r').read }
|
49
|
-
file = XPath.first(doc_lookup.root, "records/entry[id='#{id}']/file")
|
49
|
+
file = XPath.first(doc_lookup.root, "records/entry[id='#{id}']/file/text()").to_s
|
50
50
|
doc_entries = Document.new(@hc_entry_file.read(file) { File.open(@file_path + file,'r').read })
|
51
51
|
XPath.first(doc_entries.root, "records/entry[@id='#{id}']")
|
52
52
|
end
|