mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
NEW ViewableData_Debugger implements __toString
This fixes an issue were ViewableData can be 'debugged' and no information is output - related #4030
This commit is contained in:
parent
4959f0eea8
commit
16f0e7b0d3
@ -701,6 +701,13 @@ class ViewableData_Debugger extends ViewableData {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string The rendered debugger
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->forTemplate();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return debugging information, as XHTML. If a field name is passed, it will show debugging information on that
|
||||
* field, otherwise it will show information on all methods and fields.
|
||||
|
Loading…
Reference in New Issue
Block a user