Sidebar Entries fix
Posted: Sat Sep 23, 2006 8:34 am
I've been working on some extreme template customization, and I'm using the Sidebar Entries plugin. I've been tearing my hair out trying to figure out why $entry.is_entry_owner isn't working as expected, and just figured out that the plugin isn't setting up that variable the same way that serendipity does on its own.
I just copy/pasted this:
into the plugin and it's all good now.
I just copy/pasted this:
Code: Select all
if ($_SESSION['serendipityAuthedUser'] === true && ($_SESSION['serendipityAuthorid'] == $entry['authorid'] || serendipity_checkPermission('adminEntriesMaintainOthers'))) {
$entry['is_entry_owner'] = true;
}