Skip to content

Commit 8db77ab

Browse files
committed
fix error on tDiary 3.1. #37
1 parent 4382909 commit 8db77ab

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

util/tdiarysearch/search.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ def unindent(str)
4141
<title>tDiary Search</title>
4242
</head>
4343
<body>
44+
<div class="whole-content">
4445
EOS
4546

4647
FOOTER = unindent <<'EOS'
48+
</div>
4749
</body>
4850
</html>
4951
EOS
@@ -123,7 +125,7 @@ def unindent(str)
123125
end
124126
$:.unshift tdiarylib
125127
require 'tdiary'
126-
require 'tdiary/defaultio'
128+
require 'tdiary/io/default'
127129
require 'erb'
128130

129131
TDIARY_ENCODING = (TDIARY_VERSION >= '2.3.0') ? 'utf-8' : 'euc-jp'
@@ -316,7 +318,7 @@ def read_diaries(path)
316318
def diary_class(style)
317319
c = DIARY_CLASS_CACHE[style]
318320
return c if c
319-
require "tdiary/#{style.downcase}_style.rb"
321+
require "tdiary/style/#{style.downcase}_style.rb"
320322
c = eval("TDiary::#{style.capitalize}Diary")
321323
c.__send__(:include, DiaryClassDelta)
322324
DIARY_CLASS_CACHE[style] = c

0 commit comments

Comments
 (0)