Dont call smarty->getconfigDir twice