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/search/weblinks/weblinks.php',
'/plugins/finder/weblinks/weblinks.php', '/plugins/finder/weblinks/weblinks.php',
'/plugins/editors-xtd/weblink/weblink.php', '/plugins/editors-xtd/weblink/weblink.php',
'plugins/system/weblinks/weblinks.php',
]; ];
$folders = [ $folders = [

View File

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

View File

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