This patch mostly cleans up white space and coding style issues. It also makes use of http://api.drupal.org/api/function/db_query_range/5 instead of db_query() and LIMIT. lastly, it fixes the use of != by using <> to make them ANSI compatible.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | query_range_coding_standards_241132_6.patch | 1.53 KB | greggles |
| #1 | pathauto-coding-standards-241132.patch | 5.69 KB | greggles |
| pathauto-coding-standards-SP20080331-unified.patch | 5.23 KB | samirnassar |
Comments
Comment #1
gregglesThanks very mucn.
For my own testing purposes, here's a slightly modified version (using the more standard cvs diff -up method to create the file). Also, you changed
Was that on purposes or just a find and replace for != that was a little too aggressive?
Comment #2
gregglesThanks again, steamedpenguin - applied to both 5.x and 6.x branches of code.
If there was a reason for changing the != to <> on that $term_path let me know and I can see about fixing it as well.
Comment #3
samirnassar commentedSorry about that extra <> it was a mistake. I replaced a != too many.
http://drupal.org/patch/create said that diff -urp was acceptable, but I'll be happy to use something else. Does that node need to be amended?
Comment #4
gregglesFor some reason I had to manually enter in the path to the files I was using. I'm not sure why that happened though.
Again, thanks for your help with this.
Comment #5
samirnassar commentedOdd. Perhaps the problem is that I diff -urp stock/module modified/module > module.patch ?
Comment #6
gregglesI had forgotten to change one of the db_query's to db_query_range - also, the from/range arguments to db_query_range come at the end of the argument list...
Attached patch fixes these errors.
Comment #7
gregglesAlso, my thanks to kvaderw in http://groups.drupal.org/node/10485#comment-33910 who found this.
Comment #8
gregglesSo, the problem identified in #6 above caused termalias to be blank which is in #243538: Empty 'termalias' placeholder
Comment #9
gregglesWill the real ANSI standard please stand up?
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/pathauto/pa...
vs.
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/pathauto/pa...
Freso seems to think that it's the opposite of this patch. I don't really care which one, but I'd prefer consistency and agreement.
Comment #10
Freso commented:)
Comment #11
gregglesAh, you both did the same thing...I got confused because I knew that I had "fixed" this recently, but the performance improvement patch re-introduced the old notation.