This patch cleans up mostly whitespace and updates some uses of db_query() with LIMIT to db_query_range().

Please test.

Comments

drewish’s picture

StatusFileSize
new6.3 KB

fixed one hunk that didn't apply correctly.

greggles’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Priority: Normal » Critical
StatusFileSize
new14.48 KB

Ok, I marked #250634: Code style cleanup as a duplicate since this is newer older. And as I said there, I would like to get this fixed and will make it the priority patch for token (i.e. nothing else gets fixed until this one).

So, attached is an updated patch for 6.x. Any reviews? Thanks.

samirnassar’s picture

Patch applies cleanly.
Module activated without problems.

samirnassar’s picture

I ran the patched token against coder and I am happy to report 10 fingers and 10 toes.

mustafau’s picture

Status: Needs review » Needs work

Coder gives following warning on token_actions.module

 * @file block missing

and following on token.module

Line 9: There should be no trailing spaces

 * Tokens are small bits of text that can be placed into larger documents 
greggles’s picture

Status: Needs work » Needs review
StatusFileSize
new15.33 KB

Okey doke. Thanks for those catches.

greggles’s picture

StatusFileSize
new15 KB

And here's one for 5.x

These seem ready to go to me. Any last nits to pick?

greggles’s picture

Status: Needs review » Fixed

Fixed in 6.x and 5.x.

Thanks steamedpenguin, Gabor Hojtsy, drewish, and mustafau!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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