lib/milkode/cdweb/lib/search_gotoline.rb in milkode-1.5.0 vs lib/milkode/cdweb/lib/search_gotoline.rb in milkode-1.6.0

- old
+ new

@@ -31,11 +31,11 @@ @offset = params[:offset].to_i @suburl = suburl @homeurl = @suburl + "/home/" # 検索クエリを解析 - @gotolines = Util::parse_gotoline(@q.keywords) + @gotolines = Util.parse_gotoline(@q.keywords) # レコードをピックアップ @records = [] @gotolines.each do |v| @records << Database.instance.record(v[0][0][1..-1]) @@ -116,10 +116,10 @@ coderay.set_range(first_index..last_index) url = @homeurl + record_link(record) <<EOS - <dt class='result-record'><a href='#{url + "#n#{coderay.highlight_lines[0]}"}'>#{Util::relative_path record.shortpath, @path}</a></dt> + <dt class='result-record'><a href='#{url + "#n#{coderay.highlight_lines[0]}"}'>#{Util.relative_path record.shortpath, @path}</a></dt> <dd> #{coderay.to_html_anchorlink(url)} </dd> EOS end