Fixed static reference to $allowedExtensions variable.