MINOR made $prefix to Debug::header() optional

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@82789 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Tom Rix 2009-07-27 21:56:27 +00:00
parent 0609a8e9cd
commit 7115d327d4

View File

@ -177,7 +177,7 @@ class Debug {
* @param string $prefix (optional)
* @return void
*/
static function header($msg, $prefix) {
static function header($msg, $prefix = null) {
if (Director::isDev() && !headers_sent()) {
self::$headerCount++;
header('SS-'.self::$headerCount.($prefix?'-'.$prefix:'').': '.$msg);