Skip to content

Commit

Permalink
allow reinstll to be a different url
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Aug 6, 2016
1 parent 59ef2fb commit 7ddfd1a
Showing 1 changed file with 9 additions and 3 deletions.
Expand Up @@ -9,6 +9,14 @@

defined('_JEXEC') or die;

$reinstallUrl = $this->updateInfo['object']->downloadurl->_data;

// Check if there is a special reinstall URL
if (isset($this->updateInfo['object']->reinstallurl->_data))
{
$reinstallUrl = $this->updateInfo['object']->reinstallurl->_data;
}

/** @var JoomlaupdateViewDefault $this */
?>
<fieldset>
Expand All @@ -31,9 +39,7 @@
<?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_PACKAGE_REINSTALL'); ?>
</td>
<td>
<a href="<?php echo $this->updateInfo['object']->downloadurl->_data; ?>">
<?php echo $this->updateInfo['object']->downloadurl->_data; ?>
</a>
<a href="<?php echo $reinstallUrl; ?>"><?php echo $reinstallUrl; ?></a>
</td>
</tr>
<?php if (isset($this->updateInfo['object']->get('infourl')->_data)
Expand Down

0 comments on commit 7ddfd1a

Please sign in to comment.