The assignment to $original_url is dead and can be removed.
The assignment to $enclosure is dead and can be removed.
The parameter $dt is not used and could be removed.
useless breaks
Moving common_error_handler() to the only file where it is used.