mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX If SS_Backtrace::get_rendered_backtrace() has $plainText argument
to TRUE, ensure there is no HTML in the output.
This commit is contained in:
parent
7e3a698d56
commit
edaed5ef7e
@ -159,7 +159,7 @@ class SS_Backtrace {
|
||||
*/
|
||||
static function get_rendered_backtrace($bt, $plainText = false, $ignoredFunctions = null) {
|
||||
$bt = self::filter_backtrace($bt, $ignoredFunctions);
|
||||
$result = "<ul>";
|
||||
$result = ($plainText) ? '' : '<ul>';
|
||||
foreach($bt as $item) {
|
||||
if($plainText) {
|
||||
$result .= self::full_func_name($item,true) . "\n";
|
||||
@ -177,7 +177,7 @@ class SS_Backtrace {
|
||||
$result .= "</li>\n";
|
||||
}
|
||||
}
|
||||
$result .= "</ul>";
|
||||
if(!$plainText) $result .= '</ul>';
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user