Bug #17922
closedt3lib_htmlmail.php cleanup
0%
Description
The file t3lib/class.t3lib_htmlmail.php did not have phpDoc style comments yet and was quite unusable for documentation purposes. I added minimal documentation and refactored some code, cleaned up some variable names, used foreach instead of the each-while() controls and made the code better to read. I also added "public" to every function to make it PHP5-like.
This patch is still untested, I'd be glad if someone could try it out.
(issue imported from #M6958)
Files
Updated by Stefano Cecere almost 17 years ago
good work Benjamin!
but i can't understand easily the purpose of
20071214_htmlmail_cleanup_nowhitespace.patch
:?
Updated by Benni Mack almost 17 years ago
hey Stefano.
nowhitespace is just a patch create with the -uwb option to remove the whitespace changes (to make a review easier), apparently this did not change a lot so it really does not matter.
Have you tried the patch? Did it work?
Updated by Stefano Cecere almost 17 years ago
no i didn't try it.. i just browsed the pach and looked good
maybe i'll try tomorrow
thanks Ben
Updated by Stefano Cecere almost 17 years ago
hi Ben
i applied the patch and got 3 errors.
i apply here the patch to fix it
Updated by Benni Mack almost 17 years ago
Hi Stefano,
thanks for reporting back. I uploaded a new version that includes your fixes. We still have to test this class to see if it works the exact same as the old one. Only then I can send it to the Core list.
Updated by Benni Mack almost 17 years ago
I added the changes for the other issue (empty default values) in the latest version and also changed the tabs to spaces between
if (...)TAB{
if (...)SPACE{