Conversation
Removed duplicated code
plugins/editors/tinymce/tinymce.php
Outdated
There was a problem hiding this comment.
I would use $app->isAdmin(), because it is better readable
There was a problem hiding this comment.
I agree @rdeutz, in this case $app->isAdmin() would be more appropriate.
Changed getClientId() with isAdmin() as per request
|
Hi @rdeutz I have changed getClientId() with isAdmin() as per request. |
There was a problem hiding this comment.
CS: Blank line before if statement.
There was a problem hiding this comment.
(int) $this->params->get($side, 0) is used twice. Can be refactored.
|
@test success |
|
The if (isset($skindirs[$index]))or whole thing as a ternary, maybe! $side = $app->isAdmin() ? 'skin_admin' : 'skin';
$index = (int) $this->params->get($side, 0);
$skin = isset($skindirs[$index]) ? basename($skindirs[$index]) : 'lightgray';
$skin = 'skin : "' . $skin . '",';Yours is good too. I'm just suggesting. 👍 |
|
What is the status? This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8544. |
|
IMO, This is most of a code review. However the current code (without this patch) would break in the case where Or you can create a third application similar to administrator with |
|
I have tested this item ✅ successfully on 3ed4624 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8544. |
|
I have tested this item ✅ successfully on 3ed4624 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8544. |
|
@demis-palma Could you make the suggested changes please? |
Removed duplicated code