fix my xpath to make it work with ruby 1.8.3
[booh] / bin / booh-backend
index a2605f73c4cfd559f76a87924aeabcd852cfcbd6..4b2035d5947701eb0efb68858c1fa3c6b2b7ab65 100755 (executable)
@@ -317,7 +317,7 @@ def build_html_skeletons
 end
 
 def find_caption_value(xmldir, filename)
-    if cap = xmldir.elements["[@filename='#{utf8(filename)}']"].attributes['caption']
+    if cap = xmldir.elements["*[@filename='#{utf8(filename)}']"].attributes['caption']
         return cap.gsub("\n", '<br/>')
     else
         return nil