? Success

User tests: Successful: Unsuccessful:

avatar demis-palma
demis-palma
26 Nov 2015

Removed duplicated code

avatar demis-palma demis-palma - open - 26 Nov 2015
avatar demis-palma demis-palma - change - 26 Nov 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Nov 2015
Labels Added: ?
avatar brianteeman brianteeman - change - 14 Dec 2015
Category Code style
avatar demis-palma
demis-palma - comment - 3 Jan 2016

Hi @rdeutz I have changed getClientId() with isAdmin() as per request.

avatar izharaazmi
izharaazmi - comment - 5 Jan 2016

@test success

avatar izharaazmi
izharaazmi - comment - 5 Jan 2016

(int) $this->params->get($side, 0) is used twice. Can be refactored as $index.

The if can be more readable if changed to

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. :+1:

avatar conconnl
conconnl - comment - 28 Jun 2016

What is the status?
Can we test this, if so can we have a Test scenario?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8544.

avatar izharaazmi
izharaazmi - comment - 28 Jun 2016

IMO, This is most of a code review.

However the current code (without this patch) would break in the case where $app is neither site nor administrator. Try loading TinyMCE editor in the installation application with error display and error reporting on.

Or you can create a third application similar to administrator with client_id = 3 also. But that is too much of work for this small test.

avatar wmchris wmchris - test_item - 2 Aug 2016 - Tested successfully
avatar wmchris
wmchris - comment - 2 Aug 2016

I have tested this item successfully on 3ed4624

Opened TinyMCE normally, worked w/o a problem. Added a tinymce instance in installation app manually, worked as well. Code review seems fine, too. @icampus


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8544.

avatar mehmetalipamukci mehmetalipamukci - test_item - 2 Aug 2016 - Tested successfully
avatar mehmetalipamukci
mehmetalipamukci - comment - 2 Aug 2016

I have tested this item successfully on 3ed4624

tested @icampus:
simplification does what it should


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8544.

avatar roland-d
roland-d - comment - 2 Aug 2016

@demis-palma Could you make the suggested changes please?

avatar rdeutz rdeutz - change - 1 Sep 2016
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-09-01 17:13:53
Closed_By rdeutz
avatar rdeutz rdeutz - close - 1 Sep 2016
avatar rdeutz rdeutz - merge - 1 Sep 2016
avatar joomla-cms-bot joomla-cms-bot - change - 1 Sep 2016
Category Code style Plugins Front End Code style

Add a Comment

Login with GitHub to post a comment