Skip to content

Commit cc46a9e

Browse files
authored
Merge branch '6.0-dev' into upmerges/2025-02-12
2 parents 0f077ab + dc0e921 commit cc46a9e

File tree

8 files changed

+6
-50
lines changed

8 files changed

+6
-50
lines changed

build/phpstan/joomla-bootstrap.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
*/
1111

1212
\define('_JEXEC', 1);
13-
\define('JPATH_PLATFORM', 1);
1413
\define('JPATH_BASE', \dirname(__DIR__, 2));
1514

1615
// Load the Joomla environment

build/psr12/clean_errors.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@
4040
"defined('_JEXEC') or die();",
4141
"\defined('_JEXEC') or die;",
4242
"defined('_JEXEC') or die;",
43-
"\defined('JPATH_PLATFORM') or die();",
44-
"defined('JPATH_PLATFORM') or die();",
45-
"\defined('JPATH_PLATFORM') or die;",
46-
"defined('JPATH_PLATFORM') or die;",
4743
"\defined('JPATH_BASE') or die();",
4844
"defined('JPATH_BASE') or die();",
4945
"\defined('JPATH_BASE') or die;",

libraries/bootstrap.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@
1010

1111
defined('_JEXEC') or die;
1212

13-
/**
14-
* Set the platform root path as a constant if necessary.
15-
*
16-
* @deprecated 4.4.0 will be removed in 6.0
17-
* Use defined('_JEXEC') or die; to detect if the CMS is loaded correctly
18-
**/
19-
defined('JPATH_PLATFORM') or define('JPATH_PLATFORM', __DIR__);
20-
2113
// Detect the native operating system type.
2214
$os = strtoupper(substr(PHP_OS, 0, 3));
2315

libraries/cms.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@
1818
E_USER_DEPRECATED
1919
);
2020

21-
/**
22-
* Set the platform root path as a constant if necessary.
23-
*
24-
* @deprecated 4.4.0 will be removed in 6.0
25-
* Use defined('_JEXEC') or die; to detect if the CMS is loaded correctly
26-
**/
27-
if (!defined('JPATH_PLATFORM')) {
28-
define('JPATH_PLATFORM', __DIR__);
29-
}
30-
3121
// Import the library loader if necessary
3222
if (!class_exists('JLoader')) {
3323
require_once JPATH_LIBRARIES . '/loader.php';

libraries/import.legacy.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,6 @@
1717
E_USER_DEPRECATED
1818
);
1919

20-
/**
21-
* Set the platform root path as a constant if necessary.
22-
*
23-
* @deprecated 4.4.0 will be removed in 6.0
24-
* Use defined('_JEXEC') or die; to detect if the CMS is loaded correctly
25-
**/
26-
if (!defined('JPATH_PLATFORM')) {
27-
define('JPATH_PLATFORM', __DIR__);
28-
}
29-
3020
// Detect the native operating system type.
3121
$os = strtoupper(substr(PHP_OS, 0, 3));
3222

libraries/import.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,6 @@
1717
E_USER_DEPRECATED
1818
);
1919

20-
/**
21-
* Set the platform root path as a constant if necessary.
22-
*
23-
* @deprecated 4.4.0 will be removed in 6.0
24-
* Use defined('_JEXEC') or die; to detect if the CMS is loaded correctly
25-
**/
26-
if (!defined('JPATH_PLATFORM')) {
27-
define('JPATH_PLATFORM', __DIR__);
28-
}
29-
3020
// Detect the native operating system type.
3121
$os = strtoupper(substr(PHP_OS, 0, 3));
3222

plugins/behaviour/compat/src/Extension/Compat.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ public function __construct(DispatcherInterface $dispatcher, array $config = [])
7474
if ($this->params->get('classes_aliases', '1')) {
7575
require_once \dirname(__DIR__) . '/classmap/classmap.php';
7676
}
77+
78+
/**
79+
* Load the constant early as it is used in class files before the class itself is loaded.
80+
* @deprecated 4.4.0 will be removed in 7.0
81+
*/
82+
\defined('JPATH_PLATFORM') or \define('JPATH_PLATFORM', __DIR__);
7783
}
7884

7985
/**

tests/Unit/bootstrap.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@
3535
\define('JPATH_ROOT', JPATH_BASE);
3636
}
3737

38-
/**
39-
* @deprecated 4.4.0 will be removed in 6.0
40-
**/
41-
if (!\defined('JPATH_PLATFORM')) {
42-
\define('JPATH_PLATFORM', JPATH_BASE . DIRECTORY_SEPARATOR . 'libraries');
43-
}
44-
4538
if (!\defined('JPATH_LIBRARIES')) {
4639
\define('JPATH_LIBRARIES', JPATH_BASE . DIRECTORY_SEPARATOR . 'libraries');
4740
}

0 commit comments

Comments
 (0)