mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENHANCEMENT: Added databse name to output of dev/build (merged from r77265)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@77266 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
6179173d26
commit
a1d17bc6e0
@ -143,7 +143,11 @@ class DatabaseAdmin extends Controller {
|
||||
if($quiet) {
|
||||
DB::quiet();
|
||||
} else {
|
||||
echo "<h2>Building Database</h2>";
|
||||
$conn = DB::getConn();
|
||||
$databaseName = ($conn->hasMethod('currentDatabase')) ? $conn->currentDatabase() : "";
|
||||
|
||||
if(Director::is_cli()) echo "\n\nBuilding Database $databaseName\n\n";
|
||||
else echo "<h2>Building Database $databaseName</h2>";
|
||||
}
|
||||
|
||||
// Set up the initial database
|
||||
|
Loading…
x
Reference in New Issue
Block a user