mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Debug::text no longer incorrecty returns "ViewableData_debugger"
This commit is contained in:
parent
06ccac1a2b
commit
72bb9a2087
@ -125,7 +125,12 @@ class Debug {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($hasDebugMethod) {
|
if($hasDebugMethod) {
|
||||||
return $val->debug();
|
$debug = $val->debug();
|
||||||
|
// Conditional not necessary after 3.2. See https://github.com/silverstripe/silverstripe-framework/pull/4034
|
||||||
|
if ($debug instanceof ViewableData_Debugger) {
|
||||||
|
$debug = $debug->forTemplate();
|
||||||
|
}
|
||||||
|
return $debug;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user