diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-09-19 07:44:10 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-09-19 07:44:10 +0400 |
commit | b46c81587598ffde15f69a657f5a981656fc3b1d (patch) | |
tree | 10b45ead6923b0b4cc689e8b0291f49f60abae48 /core/Plugin/MetadataLoader.php | |
parent | cc5fc7fc90c21b3a4e2bf98e028b093a91f7c738 (diff) |
throw exception in case plugin defines the metadata in getInformation method and plugin json
Diffstat (limited to 'core/Plugin/MetadataLoader.php')
-rw-r--r-- | core/Plugin/MetadataLoader.php | 7 |
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'; |