X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=application%2Fship-simu%2Finit.php;fp=application%2Fship-simu%2Finit.php;h=431e4420d37ef526e2f2966178ca76d1b2a25da0;hb=65d72098d3ec6a0ef7782668264fc6f33f9ebeb6;hp=ffc577c22f0f5a0b546e55d7192c1f7e607738d8;hpb=b44e5e7347f9a1dbd49b5b47d506a4f6526caf2f;p=shipsimu.git diff --git a/application/ship-simu/init.php b/application/ship-simu/init.php index ffc577c..431e442 100644 --- a/application/ship-simu/init.php +++ b/application/ship-simu/init.php @@ -33,11 +33,13 @@ * along with this program. If not, see . */ -// Get an instance of the helper -$eval = sprintf("\$app = %s::getInstance();", +// Generate call-back function +$callback = sprintf("%s::getInstance", FrameworkConfiguration::getInstance()->readConfig('app_helper_class') ); -eval($eval); + +// Get an instance of the helper +$app = call_user_func_array($callback, array()); // Set application name and version $app->setAppName("Ship-Simu Schiffsimulator");