| @@ -49,9 +49,9 @@ | ||
| 49 | 49 | $cache =& $this->getLicenses(); |
| 50 | 50 | // Add action to the state object! |
| 51 | 51 | $state['action'] = $action; |
| 52 | 52 | // Cache Plugin data! |
| 53 | - $state['plugin'] = get_plugin_data(WP_PLUGIN_DIR . "/{$component['pluginBase']}", false); | |
| 53 | + $state['plugin'] = get_plugin_data(ABSPATH . PLUGINDIR . "/{$component['pluginBase']}", false); | |
| 54 | 54 | // Cache object! |
| 55 | 55 | $cache[$component['name']] = $state; |
| 56 | 56 | update_option(self::LICENSES_CACHE, $cache); |
| 57 | 57 | // update local Cache! |
| @@ -122,9 +122,9 @@ | ||
| 122 | 122 | # Use XML |
| 123 | 123 | $exDef = new SimpleXMLElement(file_get_contents($pluginXMLFile)); |
| 124 | 124 | # Register XPath namespace |
| 125 | 125 | $license = $exDef->license; |
| 126 | - $license->registerXPathNamespace('ext', 'https://css-javascript-toolbox.com/extensions/xmldeffile'); | |
| 126 | + $license->registerXPathNamespace('ext', 'http://css-javascript-toolbox.com/extensions/xmldeffile'); | |
| 127 | 127 | # Get types |
| 128 | 128 | $typesSrc = $exDef->license->xpath('name'); |
| 129 | 129 | foreach ($typesSrc as $type) { |
| 130 | 130 | # Product name |