File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111
1212define ('_JEXEC ' , 1 );
1313
14- $ path = __DIR__ . '/../administrator/components/com_datacompliance/assets/cli/base.php ' ;
14+ // Setup and import the base CLI script
15+ $ curdir = __DIR__ ;
16+ $ path = __DIR__ . '/../administrator/components/com_datacompliance/assets/cli/base.php ' ;
1517
1618if (file_exists ($ path ))
1719{
@@ -41,7 +43,7 @@ public function execute()
4143 // Logger format. "echo" passes the log message verbatim.
4244 'logger ' => 'callback ' ,
4345 'callback ' => function (LogEntry $ entry ) {
44- $ priorities = array (
46+ $ priorities = [
4547 Log::EMERGENCY => 'EMERGENCY ' ,
4648 Log::ALERT => 'ALERT ' ,
4749 Log::CRITICAL => 'CRITICAL ' ,
@@ -50,7 +52,7 @@ public function execute()
5052 Log::NOTICE => 'NOTICE ' ,
5153 Log::INFO => 'INFO ' ,
5254 Log::DEBUG => 'DEBUG ' ,
53- ) ;
55+ ] ;
5456
5557 $ priority = $ priorities [$ entry ->priority ];
5658 $ date = $ entry ->date ->format (JText::_ ('DATE_FORMAT_FILTER_DATETIME ' ));
Original file line number Diff line number Diff line change 1010
1111define ('_JEXEC ' , 1 );
1212
13- $ path = __DIR__ . '/../administrator/components/com_datacompliance/assets/cli/base.php ' ;
13+ // Setup and import the base CLI script
14+ $ curdir = __DIR__ ;
15+ $ path = __DIR__ . '/../administrator/components/com_datacompliance/assets/cli/base.php ' ;
1416
1517if (file_exists ($ path ))
1618{
Original file line number Diff line number Diff line change 1313
1414define ('_JEXEC ' , 1 );
1515
16- $ path = __DIR__ . '/../administrator/components/com_datacompliance/assets/cli/base.php ' ;
16+ // Setup and import the base CLI script
17+ $ curdir = __DIR__ ;
18+ $ path = __DIR__ . '/../administrator/components/com_datacompliance/assets/cli/base.php ' ;
1719
1820if (file_exists ($ path ))
1921{
You can’t perform that action at this time.
0 commit comments