mirror of
https://github.com/processwire/processwire.git
synced 2025-08-08 15:57:01 +02:00
Minor code improvements and housekeeping for various core classes and modules
This commit is contained in:
@@ -352,7 +352,7 @@ class Debug {
|
||||
$options = array_merge($defaults, $options);
|
||||
if($options['limit']) $options['limit']++;
|
||||
$traces = @debug_backtrace($options['flags'], $options['limit']);
|
||||
$config = wire('config');
|
||||
$config = wire()->config;
|
||||
$rootPath = ProcessWire::getRootPath(true);
|
||||
$rootPath2 = $config && $config->paths ? $config->paths->root : $rootPath;
|
||||
array_shift($traces); // shift of the simpleBacktrace call, which is not needed
|
||||
@@ -365,7 +365,7 @@ class Debug {
|
||||
$apiVars[wireClassName($value)] = '$' . $name;
|
||||
}
|
||||
|
||||
foreach($traces as $n => $trace) {
|
||||
foreach($traces as $trace) {
|
||||
|
||||
if(!is_array($trace) || !isset($trace['function']) || !isset($trace['file'])) {
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user