If the node was created by an anonymous user the function forward_form_submit() creates the $submitted var as "by " which means it isn't empty and is included in forward.tpl.php. Patch on its way.

Comments

Sarenc’s picture

Status: Active » Needs review
StatusFileSize
new1.19 KB

Patch for review:

john.oltman’s picture

Version: 6.x-1.9 » 6.x-1.21
Assigned: Unassigned » john.oltman

Thanks for the patch, will try it out and apply to 6.x DEV branch if it works out. Looks like the correct fix though.

john.oltman’s picture

Title: Problem with $submitted var with anonymous users » Problem with submitted var for anonymous authors
Version: 6.x-1.21 » 7.x-1.3
Status: Needs review » Patch (to be ported)

Tested out OK but I had to apply the same fix to the old style theme function as well.

Committed to 6.x and will appear in the next 6.x DEV build.

Changing issue version # to 7.x-1.3 since a similar fix needs to be ported to the 7.x branch. I will work on that soon.

john.oltman’s picture

Assigned: john.oltman » Unassigned
Status: Patch (to be ported) » Fixed

Fix committed to 7.x branch. This also required a change to use variable_get instead of theme_get_setting to determine whether a node being forwarded should display the post information in the first place.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.