Skip to content

Commit c9e45bb

Browse files
laoneowilsonge
authored andcommitted
Add the missing import in the application (#19709)
* Add the missing import in the application * Use the local logger
1 parent 8551019 commit c9e45bb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libraries/src/Application/CMSApplication.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,11 @@ public function getPathway($name = null, $options = array())
554554
else
555555
{
556556
// Name should not be used
557-
Log::add('Name attribute is deprecated, in the future fetch the pathway through the respective application.', Log::WARNING, 'deprecated');
557+
$this->getLogger()->warning(
558+
'Name attribute is deprecated, in the future fetch the pathway '
559+
. 'through the respective application.',
560+
array('category' => 'deprecated')
561+
);
558562
}
559563

560564
try

0 commit comments

Comments
 (0)