Skip to content

Commit

Permalink
LPD-37516 SF/Wordsmith
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Dec 4, 2024
1 parent 676aea4 commit 802d58e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ private void _addControlPanelThemeCSSClientExtensionEntryRel(Long companyId)
_cet.getExternalReferenceCode(), _cet.getType(), StringPool.BLANK,
new ServiceContext());

int clientExtensionEntryRelsCount =
int count =
_clientExtensionEntryRelLocalService.
getClientExtensionEntryRelsCount(
_portal.getClassNameId(Layout.class), layout.getPlid(),
ClientExtensionEntryConstants.TYPE_THEME_CSS);

if (clientExtensionEntryRelsCount > 1) {
if (count > 1) {
_log.error(
"Only one theme CSS client extension can be applied at a " +
"time. To avoid conflicts, none of them will be applied.");
Expand All @@ -176,7 +176,7 @@ private Layout _getControlPanelLayout(long companyId)

if (ListUtil.isEmpty(layouts)) {
throw new NoSuchLayoutException(
"Unable to get control panel layout");
"Unable to get Control Panel layout");
}

return layouts.get(0);
Expand Down

0 comments on commit 802d58e

Please sign in to comment.