mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
0609a8e9cd
commit
7115d327d4
@ -177,7 +177,7 @@ class Debug {
|
|||||||
* @param string $prefix (optional)
|
* @param string $prefix (optional)
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
static function header($msg, $prefix) {
|
static function header($msg, $prefix = null) {
|
||||||
if (Director::isDev() && !headers_sent()) {
|
if (Director::isDev() && !headers_sent()) {
|
||||||
self::$headerCount++;
|
self::$headerCount++;
|
||||||
header('SS-'.self::$headerCount.($prefix?'-'.$prefix:'').': '.$msg);
|
header('SS-'.self::$headerCount.($prefix?'-'.$prefix:'').': '.$msg);
|
||||||
|
Loading…
Reference in New Issue
Block a user