BUGFIX: if running in cli do not output html tags when rebuilding the db (from r106154)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112522 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-10-15 02:58:21 +00:00
parent 3c18a9f1f6
commit 497e557632

View File

@ -238,7 +238,10 @@ class DatabaseAdmin extends Controller {
echo "OK";
}
if(!$quiet) echo "<p>Database build completed!</p>";
if(!$quiet) {
echo (Director::is_cli()) ? "\n Database build completed!\n\n" :"<p>Database build completed!</p>";
}
ClassInfo::reset_db_cache();
}