| @@ -77,11 +77,15 @@ | ||
| 77 | 77 | $extension = $extensions[$class]; |
| 78 | 78 | // We only work with extensions that required license key! |
| 79 | 79 | if ($extension['definition']['primary']['requiredLicense']) { |
| 80 | 80 | // Load license |
| 81 | - $definition = new SimpleXMLElement($extension['definition']['raw']); | |
| 82 | - $component['name'] = (string) $definition->license->name; | |
| 83 | - $component['pluginBase'] = $file; | |
| 81 | + $definition = new SimpleXMLElement($extension['definition']['raw']); | |
| 82 | + $component['pluginBase'] = $file; | |
| 83 | + // Get extension title | |
| 84 | + // Use first license type name for old extensions that doesnt | |
| 85 | + // provide title attribute | |
| 86 | + $defTitle = (string) $definition->license->attributes()->title; | |
| 87 | + $component['title'] = $defTitle ? $defTitle : ((string) $definition->license->name[0]); | |
| 84 | 88 | // Get action Markup! |
| 85 | 89 | $links['license-key'] = $this->getTemplate('default_setup_action', array('component' => $component)); |
| 86 | 90 | } |
| 87 | 91 | } |