Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Plugin/MetadataLoader.php')
-rw-r--r--core/Plugin/MetadataLoader.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/Plugin/MetadataLoader.php b/core/Plugin/MetadataLoader.php
index 60d31f895e..94d5a65cc1 100644
--- a/core/Plugin/MetadataLoader.php
+++ b/core/Plugin/MetadataLoader.php
@@ -58,6 +58,13 @@ class MetadataLoader
);
}
+ public function hasPluginJson()
+ {
+ $hasJson = $this->loadPluginInfoJson();
+
+ return !empty($hasJson);
+ }
+
private function getDefaultPluginInformation()
{
$descriptionKey = $this->pluginName . '_PluginDescription';