X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=application%2Fselector%2Finit.php;h=ed31055300d03a539260f0a8b13dc75616429a5d;hp=6a02f976ea3745f1ce80624da46a94423be1dc5c;hb=65d72098d3ec6a0ef7782668264fc6f33f9ebeb6;hpb=b44e5e7347f9a1dbd49b5b47d506a4f6526caf2f diff --git a/application/selector/init.php b/application/selector/init.php index 6a02f97..ed31055 100644 --- a/application/selector/init.php +++ b/application/selector/init.php @@ -24,13 +24,14 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -// -// -// Get an instance of the initializer -$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("Applikationsauswähler");