Closed (fixed)
Project:
Smackdown
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
3 Sep 2009 at 17:37 UTC
Updated:
6 Nov 2009 at 16:50 UTC
Jump to comment: Most recent file
This is sortof it
Kindof :-D
Just not a fan of $_SESSION stuff. Particularly if its just supposed to carry through to the next page.
I think the bug will show up if you vote on the last, land on the results page and then go somewhere else. And finally end up at a smackdown node. But even then is it a bug? /me shrugs
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | smackdown_get.patch | 2.98 KB | Scott Reynolds |
| #1 | smackdown_get.patch | 2.89 KB | Scott Reynolds |
| session.patch | 1.91 KB | Scott Reynolds |
Comments
Comment #1
Scott Reynolds commentedthis is a really clean approach. It replaces the redirection (die non-theme theme functions! :-D ), with a drupal_alter() and adds the location to the response, via url() (YA! path alias') with a query.
Pretty slick, and pretty clean. I figured other modules would like to modify the vote, or react to the vote differently changing the location. All cool achievable things.
Comment #2
Scott Reynolds commentedbah! i really wish i could submit a patch once correctly...
This one removes the erroneous $_SESSION[] for the node_load().
Comment #3
sirkitree commentedcommitted http://drupal.org/cvs?commit=278840