Skip to content

Commit

Permalink
I will not copy paste code from core again
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman committed Apr 8, 2022
1 parent 959f6e6 commit 2718226
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

if (Factory::getApplication()->getIdentity()->authorise('core.admin', 'com_joomlaupdate'))
{
$displayData['formAppend'] = '<div class="text-center"><a href="' . $uploadLink . '" class="btn btn-sm btn-outline-secondary mx-auto">' . Text::_('COM_JOOMLAUPDATE_UPLOAD_AND_UPDATE') . '</a></div>';
$displayData['formAppend'] = '<div class="text-center"><a href="' . $uploadLink . '" class="btn btn-sm btn-outline-secondary">' . Text::_('COM_JOOMLAUPDATE_UPLOAD_AND_UPDATE') . '</a></div>';
}

if (isset($this->updateInfo['object']) && isset($this->updateInfo['object']->get('infourl')->_data)) :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ class="extension-check upcomp hidden"

<?php if (Factory::getUser()->authorise('core.admin')) : ?>
<div class="text-center">
<a href="<?php echo Route::_('index.php?option=com_joomlaupdate&view=upload'); ?>" class="btn btn-sm btn-outline-secondary mx-auto">
<a href="<?php echo Route::_('index.php?option=com_joomlaupdate&view=upload'); ?>" class="btn btn-sm btn-outline-secondary">
<?php echo Text::_('COM_JOOMLAUPDATE_UPLOAD_AND_UPDATE'); ?>
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
endif;

if (Factory::getApplication()->getIdentity()->authorise('core.admin', 'com_joomlaupdate')) :
$displayData['formAppend'] = '<div class="text-center"><a href="' . $uploadLink . '" class="btn btn-sm btn-outline-secondary mx-auto">' . Text::_('COM_JOOMLAUPDATE_UPLOAD_AND_UPDATE') . '</a></div>';
$displayData['formAppend'] = '<div class="text-center"><a href="' . $uploadLink . '" class="btn btn-sm btn-outline-secondary">' . Text::_('COM_JOOMLAUPDATE_UPLOAD_AND_UPDATE') . '</a></div>';
endif;

echo '<div id="joomlaupdate-wrapper">';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
</div>';

if (Factory::getApplication()->getIdentity()->authorise('core.admin', 'com_joomlaupdate')) :
$displayData['formAppend'] = '<div class="text-center"><a href="' . $uploadLink . '" class="btn btn-sm btn-outline-secondary mx-auto">' . Text::_('COM_JOOMLAUPDATE_UPLOAD_AND_UPDATE') . '</a></div>';
$displayData['formAppend'] = '<div class="text-center"><a href="' . $uploadLink . '" class="btn btn-sm btn-outline-secondary">' . Text::_('COM_JOOMLAUPDATE_UPLOAD_AND_UPDATE') . '</a></div>';
endif;

echo '<div id="joomlaupdate-wrapper">';
Expand Down

0 comments on commit 2718226

Please sign in to comment.