Which one has the correct "lian", 炼功夫 or 练功夫?
According to Zhongwen Chinese Popup Dictionary, 炼 means "to refine, to smelt"; while 练 means "to practice, to train, to drill, to perfect (one's skills), exercise".

So obviously 练功夫 is more correct from a formal perspective, though both are possibly used informally.