well a bunch of fixes. Bug and style fixes, also replaced unneeded double with single quotes.

Comments

quicksketch’s picture

Thanks. This could take a short while to review, but I'll make sure to do it before the patch gets stale. We can't apply to just one branch of Webform however. Could you resolve the conflicts when this patch is applied to Drupal 5?

eMPee584’s picture

uuhh.. well maybe porting the bug fixes is sufficient for the 5.x branch? i'll check this l8r..

quicksketch’s picture

In order to maintain both versions of the module, they need to be as consistent as possible in every way (*especially* spacing and code style consistencies). Otherwise every patch that comes up takes forever to apply to both versions.

eMPee584’s picture

StatusFileSize
new123.54 KB

ok here's the 5-x version hope i didn't miss anything.

eMPee584’s picture

i am not supposed to rebase this, am i?

quicksketch’s picture

Status: Needs review » Fixed

Okay... finally committed. Thanks for the general code style fixes.

However. Please do not EVER submit another issue to any of my project that deal with switching double quotes to single quotes. I don't care. Regarding the use of drupal_* functions such as drupal_strtolower() or drupal_substr(), these are completely unnecessary in situations where we already know what the string values are (since they're in code originally). I don't have statistics, but I'd bet a single call to drupal_substr() negates a million double quotes. Have you looked at the code for that function? I also cleaned up a dozen misuses of update_sql(), which cannot take parameters so this patch would have broken all update paths.

I'm thankful for the patch, but really this could have totaled 300 lines instead of 3000. I mostly committed it because I know it was a lot of work for you to do both of these patches. So thanks again. Please chill out.

eMPee584’s picture

ok quicksketch thx for handling it sanefully. Also i got your points, guess you're right, sorry about possible WOT ;=]

Status: Fixed » Closed (fixed)

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