Add backtrace to invalid value for width
parent
6f146d1af0
commit
f4b8066d00
|
@ -876,7 +876,10 @@ public static function getStatuses() {
|
|||
if ( $scale < $options['scale'] )
|
||||
$options['scale'] = $scale;
|
||||
} else {
|
||||
Warning('Invalid value for width: '.$options['width']);
|
||||
$backTrace = debug_backtrace();
|
||||
$file = $backTrace[1]['file'];
|
||||
$line = $backTrace[1]['line'];
|
||||
Warning('Invalid value for width: '.$options['width']. ' from '.$file.':'.$line);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue