mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-09-21 17:49:07 +00:00
Clean up and delete the old plugin file
This commit is contained in:
parent
eba461fe1d
commit
e0710f4bed
@ -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 = [
|
||||||
|
@ -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', []);
|
||||||
|
@ -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##
|
||||||
|
Loading…
Reference in New Issue
Block a user