Was definitely goals scored. We scored 66 goals to Cardiff's 65. Cardiff lost 1-0 at Sheffield Wednesday on the final day. However, if they've have lost 3-2 then the goal difference would have stayed the same but Cardiff would have made the play-offs due to scoring more goals than us.
http://www.statto.com/football/stats/england/league-championship/2008-2009
And if I remember correctly, within that 6-0 win, I think Cardiff scored an own goal.
That made it even sweeter.