diff --git a/core/ManifestBuilder.php b/core/ManifestBuilder.php index 2d882f117..f5f436823 100644 --- a/core/ManifestBuilder.php +++ b/core/ManifestBuilder.php @@ -119,17 +119,14 @@ class ManifestBuilder { $manifest .= "\$_CSS_MANIFEST = " . var_export($cssManifest, true) . ";\n"; DB::connect($databaseConfig); - if(DB::isActive()) { - // Database manifest - $allClasses = ManifestBuilder::allClasses($classManifest); + // Database manifest + $allClasses = ManifestBuilder::allClasses($classManifest); - $manifest .= "\$_ALL_CLASSES = " . var_export($allClasses, true) . ";\n"; + $manifest .= "\$_ALL_CLASSES = " . var_export($allClasses, true) . ";\n"; + + global $_ALL_CLASSES; + $_ALL_CLASSES = $allClasses; - global $_ALL_CLASSES; - $_ALL_CLASSES = $allClasses; - } else { - if(!isset($_REQUEST['from_installer'])) echo '
Creating database
'; } DB::createDatabase(); + // ManifestBuilder::compileManifest(); } // Get all our classes @@ -149,7 +150,7 @@ class DatabaseAdmin extends Controller { if(!$quiet) { echo 'Creating database tables
'; } - + $conn->beginSchemaUpdate(); foreach($dataClasses as $dataClass) { // Test_ indicates that it's the data class is part of testing system