- md5
- eeba81ee9d219fda7b3806848a209a97
- sha1
- 8aa15f2ebad45825da67f0176dab4e17be7a732f
- sha256
- acf5e42959f7c0c92ee38de3c5d196390f0b1b8e30f1b7061498ecc6ec2d1c71
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
<?php
/**
* @package Joomla.Administrator
* @subpackage com_installer
*
* @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Component\Installer\Administrator\View\Install;
use Joomla\CMS\Access\Exception\NotAllowed;
use Joomla\CMS\Helper\ContentHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\Component\Installer\Administrator\View\Installer\HtmlView as InstallerViewDefault;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* Extension Manager Install View
*
* @since 1.5
*/
class HtmlView extends InstallerViewDefault
{
/**
* Display the view
*
* @param string $tpl Template
*
* @return void
*
* @since 1.5
*/
public function display($tpl = null)
{
if (!$this->getCurrentUser()->authorise('core.admin')) {
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
}
$paths = new \stdClass();
$paths->first = '';
$this->paths = &$paths;
PluginHelper::importPlugin('installer');
parent::display($tpl);
}
/**
* Add the page title and toolbar.
*
* @return void
*
* @since 1.6
*/
protected function addToolbar()
{
$toolbar = $this->getDocument()->getToolbar();
if (ContentHelper::getActions('com_installer')->get('core.manage')) {
$toolbar->linkButton('list', 'COM_INSTALLER_TOOLBAR_MANAGE')
->url('index.php?option=com_installer&view=manage');
$toolbar->divider();
}
parent::addToolbar();
$toolbar->help('Extensions:_Install');
}
}
The same content is in 114 releases, Joomla 5.2.0-beta1 to 6.2.1-rc1. See them all, or every version of this file.