mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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();
|
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
|
* 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.
|
* field, otherwise it will show information on all methods and fields.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user