Revert "remove unused variables"

This reverts commit cb9e34d42a36c98835454f9181eabf593889654e.

-> $error_header, $lang and $dir are used in the included file
libraries/error.inc.php
add comment why variables are still needed