Skip to content

Commit

Permalink
Add PLG_INSTALLER_JCE_KEY_LIMIT message on 498 code (key limit)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandemmer committed Sep 24, 2024
1 parent d5718c5 commit 651e528
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions administrator/language/en-GB/en-GB.plg_installer_jce.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
; JCE
; Copyright (C) 2009 - 2019 Ryan Demmer. All rights reserved.
; Copyright (C) 2009 - 2024 Ryan Demmer. All rights reserved.
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
; Note : All ini files need to be saved as UTF-8

PLG_INSTALLER_JCE="Installer - JCE"
PLG_INSTALLER_JCE_XML_DESCRIPTION="JCE Installer Plugin"
PLG_INSTALLER_JCE_KEY_WARNING="<strong>JCE Update : </strong>You need to set your Subscription Key to update JCE Pro or JCE Plugins. Please see - <a href='https://www.joomlacontenteditor.net/support/faq/subscription/using-the-subscription-key' target='_blank'><strong>Using the Subscription Key</strong></a>"
PLG_INSTALLER_JCE_KEY_INVALID="<strong>JCE Update : </strong>The Subscription Key you have provided is expired or invalid. Please purchase a new Subscription to continue using this key - <a href='https://www.joomlacontenteditor.net/component/subscriptions/purchase' target='_blank'><strong>Buy or Renew a JCE Subscription</strong></a><br />For more information about the Subscription Key, please see - <a href='https://www.joomlacontenteditor.net/support/faq/subscription/using-the-subscription-key' target='_blank'><strong>Using the Subscription Key</strong></a>"
PLG_INSTALLER_JCE_KEY_INVALID="<strong>JCE Update : </strong>The Subscription Key you have provided is expired or invalid. Please purchase a new Subscription to continue using this key - <a href='https://www.joomlacontenteditor.net/component/subscriptions/purchase' target='_blank'><strong>Buy or Renew a JCE Subscription</strong></a><br />For more information about the Subscription Key, please see - <a href='https://www.joomlacontenteditor.net/support/faq/subscription/using-the-subscription-key' target='_blank'><strong>Using the Subscription Key</strong></a>"
PLG_INSTALLER_JCE_KEY_LIMIT="<strong>JCE Update : </strong>You have reached the Update Limit for this Subscription Key. Please upgrade to the next Subscription Tier - <a href='https://www.joomlacontenteditor.net/component/subscriptions/purchase' target='_blank'><strong>Buy or Renew a JCE Subscription</strong></a><br />For more information about the Subscription Key, please see - <a href='https://www.joomlacontenteditor.net/support/faq/subscription/using-the-subscription-key' target='_blank'><strong>Using the Subscription Key</strong></a>"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; JCE
; Copyright (C) 2009 - 2016 Ryan Demmer. All rights reserved.
; Copyright (C) 2009 - 2024 Ryan Demmer. All rights reserved.
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
; Note : All ini files need to be saved as UTF-8

Expand Down
4 changes: 2 additions & 2 deletions plugins/installer/jce/src/PluginTraits/EventsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ public function onInstallerBeforePackageDownload(&$url, &$headers)
}

// update limit exceeded
if (429 == $response->code || 499 === $response->code) {
$app->enqueueMessage(Text::_('PLG_INSTALLER_JCE_KEY_INVALID'), 'notice');
if (498 === $response->code) {
$app->enqueueMessage(Text::_('PLG_INSTALLER_JCE_KEY_LIMIT'), 'notice');
}

return true;
Expand Down

0 comments on commit 651e528

Please sign in to comment.