Files https://github.com/joomla/joomla-cms/blob/staging/includes/defines.php
replace code in
`<?php
/**
// No direct access.
defined('_JEXEC') or die;
/**
//Defines.
/**
Labels |
Added:
?
|
What is the "bad code" you are identifying?
Sure, let's just go ahead and majorly break Joomla by deprecating the root path constants for no reason.
why you do here explode and implode
you duplicates constants
Ahh, back to this argument again.
There is no reason to deprecate the constants at this time. If you think you can optimize the code without removing functionality, as you were told months ago, you are welcome to submit a pull request.
But flat out deprecating them because they appear duplicated? That's going to go nowhere fast.
let's add 10 more constants
you can tell why this code
`$parts = explode(DIRECTORY_SEPARATOR, JPATH_BASE);
//Defines.
define('JPATH_ROOT', implode(DIRECTORY_SEPARATOR, $parts));`
why transformations explode and implode?
As was stated six months ago. Feel free.to submit a.pull request. It doesn't need to be discussed any further.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-10-21 20:57:05 |
Closed_By | ⇒ | brianteeman |
This is.now closed
when you write Joomla5 I will remind you :-)
there all are fine, I guess you have mixed up something?