<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/logging_stuff.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -59,6 +59,7 @@ require_dependency 'instiki_errors'
 
 #require 'jcode'
 require 'caching_stuff'
+require 'logging_stuff'
 
 #Additional Mime-types 
 mime_types = YAML.load_file(File.join(File.dirname(__FILE__), 'mime_types.yml'))</diff>
      <filename>config/environment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -177,7 +177,7 @@ class UrlGenerator &lt; AbstractUrlGenerator
 
     def wikilink_for(mode, name, text, web_address)
       web = Web.find_by_address(web_address)
-      action = web.published? &amp;&amp; !(web == @web &amp;&amp; ![:publish, :s5].include?(mode) ) ? 'published' : 'show'
+      action = web.published? &amp;&amp; (web != @web || [:publish, :s5].include?(mode) ) ? 'published' : 'show'
       href = @controller.url_for :controller =&gt; 'wiki', :web =&gt; web_address, :action =&gt; action, 
             :id =&gt; name, :only_path =&gt; true
       %{&lt;a class=&quot;existingWikiWord&quot; href=&quot;#{href}&quot;&gt;#{text}&lt;/a&gt;}</diff>
      <filename>lib/url_generator.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>883d82992c1f26f81130462d63ebf92123fc41b5</id>
    </parent>
  </parents>
  <author>
    <name>Jacques Distler</name>
    <email>distler@golem.ph.utexas.edu</email>
  </author>
  <url>http://github.com/parasew/instiki/commit/c99ca26a8d14c8f0a91c9e11363bc2bad0d131de</url>
  <id>c99ca26a8d14c8f0a91c9e11363bc2bad0d131de</id>
  <committed-date>2009-10-27T22:03:25-07:00</committed-date>
  <authored-date>2009-10-27T22:03:25-07:00</authored-date>
  <message>Better log rotation for Passenger

Touch the tmp/restart.txt file, when
rotatingthe log files. Otherwise, multiple
workers may try to rotate the log files
at the same time, with sub-optimal results.

Also, an aesthetic tweak to the url_generator.</message>
  <tree>5eb30bf17599592cb25308233ea71fc39955faee</tree>
  <committer>
    <name>Jacques Distler</name>
    <email>distler@golem.ph.utexas.edu</email>
  </committer>
</commit>
