Clean up and delete the old plugin file

This commit is contained in:
Tuan Pham Ngoc 2023-03-16 18:07:01 +07:00
parent eba461fe1d
commit e0710f4bed
3 changed files with 7 additions and 6 deletions

View File

@ -52,6 +52,7 @@ class Com_WeblinksInstallerScript
'/plugins/search/weblinks/weblinks.php',
'/plugins/finder/weblinks/weblinks.php',
'/plugins/editors-xtd/weblink/weblink.php',
'plugins/system/weblinks/weblinks.php',
];
$folders = [

View File

@ -81,7 +81,7 @@ final class Weblinks extends CMSPlugin implements SubscriberInterface
*
* @param string $extension The extension requesting information.
*
* @return array containing statistical information.
* @return void
*
* @since __DEPLOY_VERSION__
*/
@ -89,14 +89,14 @@ final class Weblinks extends CMSPlugin implements SubscriberInterface
{
if (!ComponentHelper::isEnabled('com_weblinks'))
{
return [];
return;
}
[$extension] = $event->getArguments();
if (!in_array($extension, $this->supportedExtensions))
{
return [];
return;
}
$db = $this->getDatabase();
@ -108,7 +108,7 @@ final class Weblinks extends CMSPlugin implements SubscriberInterface
if (!$webLinks)
{
return [];
return;
}
$result = $event->getArgument('result', []);

View File

@ -9,9 +9,9 @@
<authorUrl>www.joomla.org</authorUrl>
<version>##VERSION##</version>
<description>PLG_SYSTEM_WEBLINKS_XML_DESCRIPTION</description>
<namespace path="src">Joomla\Plugin\System\Weblinks</namespace>
<files>
<folder plugin="weblinks">services</folder>
<folder>src</folder>
##FILES##
</files>
<languages folder="language">
##LANGUAGE_FILES##