misc/plugin/en/disp_referrer.rb in tdiary-4.2.1 vs misc/plugin/en/disp_referrer.rb in tdiary-5.0.0

- old
+ new

@@ -149,11 +149,10 @@ <td><label for="dr2.search.expand.true"><input id="dr2.search.expand.true" name="dr2.search.expand" value="true" type="radio"#{' checked'if @setup['search.expand']}>Show</label> <td><Label for="dr2.search.expand.false"><input id="dr2.search.expand.false" name="dr2.search.expand" value="false" type="radio"#{' checked'if not @setup['search.expand']}>Don't show</label> the search engine names. </table> _HTML - unless @setup.secure then r << <<-_HTML <h3>Cache</h3> <p>It isn't available to turn on this option with tDiary2 file format(DefaultIO).</p> <table> <tr> @@ -169,22 +168,17 @@ <td><label for="dr2.cache.update.never"><input id="dr2.cache.update.never" name="dr2.cache.update" value="never" type="radio">don't clear</label> the cache at this time. </table> <p>Cache size limit is an approximation. There is a chance that the cache size is bigger than the configured value. Setting the limit to zero disalbes limitation. K or M can be suffixed meaning Kbytes or Mbytes.</p> _HTML - end # unless @setup.secure r end # shows URL list to be added to the referer_table or no_referer def show_unknown_list - if @setup.secure then + urls = DispRef2Cache.new( @setup ).urls( DispRef2URL::Unknown ).keys + if urls.size == 0 then urls = DispRef2Latest.new( @cgi, 'latest.rhtml', @conf, @setup ).unknown_urls - else - urls = DispRef2Cache.new( @setup ).urls( DispRef2URL::Unknown ).keys - if urls.size == 0 then - urls = DispRef2Latest.new( @cgi, 'latest.rhtml', @conf, @setup ).unknown_urls - end end urls.reject!{ |url| DispRef2String::url_match?( url, @setup['reflist.ignore_urls'] ) } r = <<-_HTML <h3>URL Conversion</h3> <input name="dr2.current_mode" value="#{RefList}" type="hidden">