empty_view/themes/standard/widgets/pinned/pinned.rb in runeblog-0.2.91 vs empty_view/themes/standard/widgets/pinned/pinned.rb in runeblog-0.2.92
- old
+ new
@@ -5,10 +5,10 @@
Type, Title = "pinned", "Pinned posts"
def initialize(repo)
@blog = repo
@datafile = "list.data"
- @lines = File.exist?(@datafile) ? File.readlines(@datafile) : []
+ @lines = _get_data?(@datafile)
end
def _html_body(file, css = nil) # FIXME
file.puts "<html>"
if css