X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fship-simu%2Floader.php;h=d60af4c88814987d00756f599962fa3021f8ef0e;hb=fd80d47afc96ae0c0759530800051a0f07eb9c92;hp=0ffd93f30c6340c2aff1538a11df0616abda7dd8;hpb=17108ad876ce8da6ac70b2d2393c762b8e9a2513;p=shipsimu.git
diff --git a/application/ship-simu/loader.php b/application/ship-simu/loader.php
index 0ffd93f..d60af4c 100644
--- a/application/ship-simu/loader.php
+++ b/application/ship-simu/loader.php
@@ -22,17 +22,14 @@
* along with this program. If not, see .
*/
-// Is the application instance set?
-if (!isset($application)) {
- // We need this!
- ApplicationEntryPoint::app_die("[Main:] Interne Variable application nicht gefunden!");
-}
+// Get config instance
+$cfg = FrameworkConfiguration::getInstance();
// Load all classes for the application
foreach ($lowerClasses as $class) {
// Try to load the application classes
try {
- ClassLoader::getInstance()->loadClasses(sprintf("%s/%s/%s", FrameworkConfiguration::getInstance()->readConfig('application_path'), $application, $class));
+ ClassLoader::getInstance()->loadClasses(sprintf("%s/%s/%s", $cfg->readConfig('application_path'), $cfg->readConfig('app_name'), $class));
} catch (PathIsNoDirectoryException $e) {
ApplicationEntryPoint::app_die(sprintf("[Main:%s] Cannot find application classes in path %s for this reason: %s",
$application,