Fix problem with %username% permalinks

This commit is contained in:
Garvin Hicking 2006-10-24 19:46:20 +00:00
parent a88887e4c5
commit 7962992a26
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,9 @@
Version 1.1 ()
------------------------------------------------------------------------
* Fix bug with using %username% in author permalinks, thanks to oeli
from the forums! (garvinhicking)
* Fix possible integer wraparound in comment count leading to
a gazillion counter state. Also now show links to the entries
within the administration comment panel. Thanks to Julian Finn!

View File

@ -350,6 +350,7 @@ function &serendipity_fetchEntries($range = null, $full = true, $limit = '', $fe
e.last_modified,
a.realname AS author,
a.username AS loginname,
a.email";
}
@ -962,7 +963,7 @@ function serendipity_printEntries($entries, $extended = 0, $preview = false, $sm
$authorData = array(
'authorid' => $entry['authorid'],
'username' => $entry['author'],
'username' => $entry['loginname'],
'email' => $entry['email'],
'realname' => $entry['author']
);