fixing alteration message to output plaintext if executed via cli

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@74337 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Mark Rickerby 2009-04-11 05:00:41 +00:00
parent 2199a581e1
commit 1bd388ee92

View File

@ -575,7 +575,7 @@ abstract class Database extends Object {
default: default:
$color=""; $color="";
} }
echo "<li style=\"color: $color\">$message</li>"; echo (Director::is_cli()) ? " * ".strip_tags($message)."\n" : "<li style=\"color: $color\">$message</li>";
} }
} }