Global variables can't be used as parameters, they are global already.

Getting warning errors with PHP 5.4 and 5.5 

Also,  blank spaces were removed in those files.