1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-16 18:42:01 +02:00

Undo 'readding releaseurl' as it is deprecated.

This commit is contained in:
Moc 2013-04-11 21:58:01 +02:00
parent 327292ddc8
commit a76387c99d
2 changed files with 9 additions and 10 deletions

View File

@ -429,7 +429,6 @@ CREATE TABLE plugin (
plugin_installflag tinyint(1) unsigned NOT NULL default '0',
plugin_addons text NOT NULL,
plugin_category varchar(100) NOT NULL default '',
plugin_releaseUrl varchar(255) NOT NULL default '',
PRIMARY KEY (plugin_id),
UNIQUE KEY plugin_path (plugin_path)
) ENGINE=MyISAM;

View File

@ -365,17 +365,17 @@ class e107plugin
$pName = vartrue($plug_info['@attributes']['lan']) ? $plug_info['@attributes']['lan'] : $plug_info['@attributes']['name'] ;
$_installed = ($plug_info['@attributes']['installRequired'] == 'true' || $plug_info['@attributes']['installRequired'] == 1 ? 0 : 1);
// XXX @Cameron - fixed PLUGIN table populate error due to the new releaseURL column, temporary fix - empty value
if (e107::getDb()->db_Insert("plugin", "0, '".$tp->toDB($pName, true)."', '".$tp->toDB($plug_info['@attributes']['version'], true)."', '".$tp->toDB($plugin_path, true)."',{$_installed}, '{$eplug_addons}', '".$this->manage_category($plug_info['category'])."', '' "))
if (e107::getDb()->db_Insert("plugin", "0, '".$tp->toDB($pName, true)."', '".$tp->toDB($plug_info['@attributes']['version'], true)."', '".$tp->toDB($plugin_path, true)."',{$_installed}, '{$eplug_addons}', '".$this->manage_category($plug_info['category'])."' "))
{
$mes->addDebug("Added <b>".$tp->toHTML($pName,false,"defs")."</b> to the plugin table.");
}
else
{
$mes->addDebug("Failed to add ".$tp->toHTML($pName,false,"defs")." to the plugin table.");
$mes->addDebug("Added <b>".$tp->toHTML($pName,false,"defs")."</b> to the plugin table.");
}
else
{
$mes->addDebug("Failed to add ".$tp->toHTML($pName,false,"defs")." to the plugin table.");
}
}
}
}
}
else
{ // May be useful that we ignore what will usually be copies/backups of plugins - but don't normally say anything
@ -2810,4 +2810,4 @@ class e107plugin
}
}
?>
?>