fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2012-01-19 08:00 am

[dw-free] Make logging out a one-step process

[commit: http://hg.dwscoalition.org/dw-free/rev/96a6b0ba5067]

http://bugs.dwscoalition.org/show_bug.cgi?id=4271

Use the "session" visible function, instead of the "_session" variable which
isn't visible because of the _ prefix.

Patch by [personal profile] fu.

Files modified:
  • schemes/common.tt
--------------------------------------------------------------------------------
diff -r 53b7f7d82aa3 -r 96a6b0ba5067 schemes/common.tt
--- a/schemes/common.tt	Thu Jan 19 15:46:33 2012 +0800
+++ b/schemes/common.tt	Thu Jan 19 16:01:54 2012 +0800
@@ -77,7 +77,7 @@
     [%- -%]<form action='[% site.root %]/logout?ret=1' method='post'>
     [%- remote.ljuser_display -%]
     [%- -%]<input type='hidden' name='user' value='[% remote.user %]' />
-    [%- -%]<input type='hidden' name='sessid' value='[% remote._session.sessid %]' />
+    [%- -%]<input type='hidden' name='sessid' value='[% remote.session.sessid %]' />
     [%- -%]<input type='submit' value="[% 'sitescheme.accountlinks.btn.logout' | ml %]" />
     [%- -%]</form>
     [%- END -%]
--------------------------------------------------------------------------------
ninetydegrees: Art: floating cute creatures and hearts (cloud 9)

[personal profile] ninetydegrees 2012-01-19 11:45 am (UTC)(link)
YAY! Thank you, Fu & Soph!