mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-01-08 16:54:06 +00:00
Update script.php
This commit is contained in:
parent
f8715fd620
commit
dd45425fdc
@ -51,24 +51,24 @@ class Com_PatchtesterInstallerScript extends InstallerScript
|
|||||||
*/
|
*/
|
||||||
public function postflight($type, $parent)
|
public function postflight($type, $parent)
|
||||||
{
|
{
|
||||||
if ($type == 'install')
|
if ($type == 'install')
|
||||||
{
|
{
|
||||||
$language = JFactory::getLanguage();
|
$language = JFactory::getLanguage();
|
||||||
$language->load('com_patchtester', JPATH_ADMINISTRATOR, null, true);
|
$language->load('com_patchtester', JPATH_ADMINISTRATOR, null, true);
|
||||||
$language->load('com_patchtester', JPATH_SITE, null, true);
|
$language->load('com_patchtester', JPATH_SITE, null, true);
|
||||||
echo '<h1><img src="../media/com_patchtester/images/icon-48-patchtester.png"> ' . Text::_('COM_PATCHTESTER') . '</h1>';
|
echo '<h1><img src="../media/com_patchtester/images/icon-48-patchtester.png"> ' . Text::_('COM_PATCHTESTER') . '</h1>';
|
||||||
echo '<p>' . Text::_('COM_PATCHTESTER_XML_DESCRIPTION') . '</p>';
|
echo '<p>' . Text::_('COM_PATCHTESTER_XML_DESCRIPTION') . '</p>';
|
||||||
echo '<p>' . Text::_('COM_PATCHTESTER_GOTO') . ' <a href="index.php?option=com_patchtester">' . Text::_('COM_PATCHTESTER') . '</a></p>';
|
echo '<p>' . Text::_('COM_PATCHTESTER_GOTO') . ' <a href="index.php?option=com_patchtester">' . Text::_('COM_PATCHTESTER') . '</a></p>';
|
||||||
echo '<p>' . Text::_('COM_PATCHTESTER_GOTO') . ' <a href="index.php?option=com_config&view=component&component=com_patchtester#authentication &path=&return=aHR0cDovL2xvY2FsaG9zdC9wYXRjaDRhMTIvYWRtaW5pc3RyYXRvci9pbmRleC5waHA%2Fb3B0aW9uPWNvbV9wYXRjaHRlc3Rlcg%3D%3D">' . Text::_('COM_PATCHTESTER_OPTIONS') . '</a></p>';
|
echo '<p>' . Text::_('COM_PATCHTESTER_GOTO') . ' <a href="index.php?option=com_config&view=component&component=com_patchtester#authentication &path=&return=aHR0cDovL2xvY2FsaG9zdC9wYXRjaDRhMTIvYWRtaW5pc3RyYXRvci9pbmRleC5waHA%2Fb3B0aW9uPWNvbV9wYXRjaHRlc3Rlcg%3D%3D">' . Text::_('COM_PATCHTESTER_OPTIONS') . '</a></p>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($type == 'uninstall')
|
if ($type == 'uninstall')
|
||||||
{
|
{
|
||||||
$language = JFactory::getLanguage();
|
$language = JFactory::getLanguage();
|
||||||
$language->load('com_patchtester', JPATH_ADMINISTRATOR, null, true);
|
$language->load('com_patchtester', JPATH_ADMINISTRATOR, null, true);
|
||||||
$language->load('com_patchtester', JPATH_SITE, null, true);
|
$language->load('com_patchtester', JPATH_SITE, null, true);
|
||||||
echo '<h1>' . Text::_('COM_PATCHTESTER') . '</h1>';
|
echo '<h1>' . Text::_('COM_PATCHTESTER') . '</h1>';
|
||||||
echo '<p>' . Text::_('COM_PATCHTESTER_UNINSTALL_THANK_YOU') . '</p>';
|
echo '<p>' . Text::_('COM_PATCHTESTER_UNINSTALL_THANK_YOU') . '</p>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user