We bought a 1950s house and the prior owner installed his own gas line so that he could start a fire to get a wood fire going. He drilled thru the bottom of the firebox to run the line instead of bringing the gas line thru the brick fireplace from the side.

Can this gas line be converted to supply a Heat N Glo vented fireplace?

When we bought the house, the home inspector said putting the gas line thru the firebox was not to code.

What is the safe way to fix this?