Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion build/phpstan/joomla-bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*/

\define('_JEXEC', 1);
\define('JPATH_PLATFORM', 1);
\define('JPATH_BASE', \dirname(__DIR__, 2));

// Load the Joomla environment
Expand Down
4 changes: 0 additions & 4 deletions build/psr12/clean_errors.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@
"defined('_JEXEC') or die();",
"\defined('_JEXEC') or die;",
"defined('_JEXEC') or die;",
"\defined('JPATH_PLATFORM') or die();",
"defined('JPATH_PLATFORM') or die();",
"\defined('JPATH_PLATFORM') or die;",
"defined('JPATH_PLATFORM') or die;",
"\defined('JPATH_BASE') or die();",
"defined('JPATH_BASE') or die();",
"\defined('JPATH_BASE') or die;",
Expand Down
8 changes: 0 additions & 8 deletions libraries/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@

defined('_JEXEC') or die;

/**
* Set the platform root path as a constant if necessary.
*
* @deprecated 4.4.0 will be removed in 6.0
* Use defined('_JEXEC') or die; to detect if the CMS is loaded correctly
**/
defined('JPATH_PLATFORM') or define('JPATH_PLATFORM', __DIR__);

// Detect the native operating system type.
$os = strtoupper(substr(PHP_OS, 0, 3));

Expand Down
10 changes: 0 additions & 10 deletions libraries/cms.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@
E_USER_DEPRECATED
);

/**
* Set the platform root path as a constant if necessary.
*
* @deprecated 4.4.0 will be removed in 6.0
* Use defined('_JEXEC') or die; to detect if the CMS is loaded correctly
**/
if (!defined('JPATH_PLATFORM')) {
define('JPATH_PLATFORM', __DIR__);
}

// Import the library loader if necessary
if (!class_exists('JLoader')) {
require_once JPATH_LIBRARIES . '/loader.php';
Expand Down
10 changes: 0 additions & 10 deletions libraries/import.legacy.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@
E_USER_DEPRECATED
);

/**
* Set the platform root path as a constant if necessary.
*
* @deprecated 4.4.0 will be removed in 6.0
* Use defined('_JEXEC') or die; to detect if the CMS is loaded correctly
**/
if (!defined('JPATH_PLATFORM')) {
define('JPATH_PLATFORM', __DIR__);
}

// Detect the native operating system type.
$os = strtoupper(substr(PHP_OS, 0, 3));

Expand Down
10 changes: 0 additions & 10 deletions libraries/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@
E_USER_DEPRECATED
);

/**
* Set the platform root path as a constant if necessary.
*
* @deprecated 4.4.0 will be removed in 6.0
* Use defined('_JEXEC') or die; to detect if the CMS is loaded correctly
**/
if (!defined('JPATH_PLATFORM')) {
define('JPATH_PLATFORM', __DIR__);
}

// Detect the native operating system type.
$os = strtoupper(substr(PHP_OS, 0, 3));

Expand Down
6 changes: 6 additions & 0 deletions plugins/behaviour/compat/src/Extension/Compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ public function __construct(DispatcherInterface $dispatcher, array $config = [])
if ($this->params->get('classes_aliases', '1')) {
require_once \dirname(__DIR__) . '/classmap/classmap.php';
}

/**
* Load the constant early as it is used in class files before the class itself is loaded.
* @deprecated 4.4.0 will be removed in 7.0
*/
\defined('JPATH_PLATFORM') or \define('JPATH_PLATFORM', __DIR__);
}

/**
Expand Down
7 changes: 0 additions & 7 deletions tests/Unit/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@
\define('JPATH_ROOT', JPATH_BASE);
}

/**
* @deprecated 4.4.0 will be removed in 6.0
**/
if (!\defined('JPATH_PLATFORM')) {
\define('JPATH_PLATFORM', JPATH_BASE . DIRECTORY_SEPARATOR . 'libraries');
}

if (!\defined('JPATH_LIBRARIES')) {
\define('JPATH_LIBRARIES', JPATH_BASE . DIRECTORY_SEPARATOR . 'libraries');
}
Expand Down