:(! Plugin file(s) missing
Cambie esta función en includes/classes/class.plugins.php:
public function importPlugin($_FILE) {
if($_FILE["file"]["type"] == "text/xml") {
$xml = simplexml_load_file($_FILE["file"]["tmp_name"]);
$pluginDATA = convertXML($xml->children());
if($this->checkXML($pluginDATA)) {
if($this->checkCompatibility($pluginDATA['compatibility'])) {
if($this->checkPluginDirectory($pluginDATA['folder'])) {
// if($this->checkFiles($pluginDATA['files'],$pluginDATA['folder'])) {
// Install Plugin
$install = $this->installPlugin($pluginDATA);
if($install) {
message('success','Plugin successfully imported!');
} else {
message('error','Could not import plugin.');
}
$update_cache = $this->rebuildPluginsCache();
if(!$update_cache) {
message('error','Could not update plugins cache data, make sure the file exists and it\'s writable!');
}
//} else { message('error','Plugin file(s) missing.'); }
} else { message('error','Plugin folder not found, please make sure you upload it to the correct path.'); }
} else { message('error','The plugin is not compatible with your current version.'); }
} else { message('error','Invalid file or missing data.'); }
} else { message('error','Invalid file type (only XML).'); }
}