Skip to content

Commit

Permalink
Changed getClientId() with isAdmin()
Browse files Browse the repository at this point in the history
Changed getClientId() with isAdmin() as per request
  • Loading branch information
demis-palma committed Jan 3, 2016
1 parent 9e4dac8 commit 3ed4624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/editors/tinymce/tinymce.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function onInit()
$skindirs = glob(JPATH_ROOT . '/media/editors/tinymce/skins' . '/*', GLOB_ONLYDIR);

// Set the selected skin in the current side, front-end or back-end
$side = $app->getClientId() ? 'skin_admin' : 'skin';
$side = $app->isAdmin() ? 'skin_admin' : 'skin';
if ((int) $this->params->get($side, 0) < count($skindirs))
{
$skin = 'skin : "' . basename($skindirs[(int) $this->params->get($side, 0)]) . '",';
Expand Down

0 comments on commit 3ed4624

Please sign in to comment.