changeset 5538:bdf396ab799d

fix trail size (thanks to Renato Silva)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 16 Feb 2010 22:20:09 +0100
parents 8ee65df9cbe9
children 19cd37af7e99
files MoinMoin/user.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/user.py	Tue Feb 16 20:33:14 2010 +0100
+++ b/MoinMoin/user.py	Tue Feb 16 22:20:09 2010 +0100
@@ -901,7 +901,7 @@
             pagename_stripped = pagename.strip()
             if pagename_stripped:
                 trail.append(pagename_stripped)
-            self._request.session['trail'] = trail[-(self._cfg.trail_size-1):]
+            self._request.session['trail'] = trail[-self._cfg.trail_size:]
 
     def getTrail(self):
         """ Return list of recently visited pages.