X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fincludes.php;h=38ec9eec70a4a9bb91a817799f5869123a156bd8;hb=5fc2c45da7b1095ae800ef8060cc3b6737b58785;hp=29572e19ce1672faf6f7862d172f7fdf360a7ec9;hpb=b9c18d6c24e3be4393bf41005aa4e428a0ea3218;p=core.git diff --git a/inc/includes.php b/inc/includes.php index 29572e19..38ec9eec 100644 --- a/inc/includes.php +++ b/inc/includes.php @@ -4,9 +4,11 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org + * @deprecated + * @todo We should minimize these includes * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -33,6 +35,7 @@ ClassLoader::getInstance()->loadExtraConfigs(); require(FrameworkConfiguration::getInstance()->getConfigEntry('base_path') . 'inc/hooks.php'); // Does the user has an application specified? +// @TODO Find a nicer OOP-ed way for this if (!empty($_GET['app'])) { // Set the application from string $application = (string) $_GET['app']; @@ -61,11 +64,5 @@ $application = preg_replace('/([^a-z0-9_-])+/i', '', $application); // Set the application name for later usage FrameworkConfiguration::getInstance()->setConfigEntry('app_name', $application); -// Is the devel package included? -if (is_dir(FrameworkConfiguration::getInstance()->getConfigEntry('base_path') . 'devel')) { - // Load all development includes - ClassLoader::getInstance()->scanClassPath('devel'); -} // END - if - // [EOF] ?>