Replaced global $config variable