Issue #2048715, Fixed pass by reference error.

This generates depreciation warnings in earlier versions of php, but in 5.4
it errors out.

	modified:   template.php