Skip to content

Commit

Permalink
protect update sites part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Nov 27, 2016
1 parent 8046e2e commit b1ceb97
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ protected function getListQuery()
'e.folder',
'e.client_id',
'e.state',
'e.protected',
'e.manifest_cache',
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@
<?php if (!$item->element) : ?>
<strong>X</strong>
<?php else : ?>
<?php echo JHtml::_('InstallerHtml.Updatesites.state', $item->enabled, $i, $item->enabled < 2, 'cb'); ?>
<?php if ($item->protected) : ?>
<a class="btn btn-micro disabled"><span class="icon-lock"></span></a>
<?php else : ?>
<?php echo JHtml::_('InstallerHtml.Updatesites.state', $item->enabled, $i, $item->enabled < 2, 'cb'); ?>
<?php endif; ?>
<?php endif; ?>
</td>
<td>
Expand Down
1 change: 1 addition & 0 deletions administrator/language/en-GB/en-GB.com_installer.ini
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ COM_INSTALLER_MSG_UPDATE_NOUPDATES="There are no updates available at the moment
COM_INSTALLER_MSG_UPDATE_SITES_COUNT_CHECK="Some update sites are disabled. You may want to check the <a href="_QQ_"%s"_QQ_">Update Sites Manager</a>."
COM_INSTALLER_MSG_UPDATE_SUCCESS="Updating %s was successful."
COM_INSTALLER_MSG_UPDATE_UPDATE="Update"
COM_INSTALLER_MSG_UPDATESITES_CANNOT_DISABLE_PROTECTED="Cannot disable update sites of protected extensions: %s."
COM_INSTALLER_MSG_UPDATESITES_DELETE_ERROR="An error has occurred while trying to delete "_QQ_"%s"_QQ_" update site: %s."
COM_INSTALLER_MSG_UPDATESITES_DELETE_CANNOT_DELETE="%s update site cannot be deleted."
COM_INSTALLER_MSG_UPDATESITES_N_DELETE_UPDATESITES_DELETED="%s update sites have been deleted."
Expand Down

0 comments on commit b1ceb97

Please sign in to comment.