mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
fixed plugin scan issue - update to latest XML version
This commit is contained in:
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/plugin_class.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/plugin_class.php,v $
|
||||||
| $Revision: 1.52 $
|
| $Revision: 1.53 $
|
||||||
| $Date: 2008-12-03 22:29:46 $
|
| $Date: 2008-12-05 14:18:51 $
|
||||||
| $Author: e107steved $
|
| $Author: secretr $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -212,13 +212,14 @@ class e107plugin
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ // New plugin - not in table yet, so add it. If no install needed, mark it as 'installed'
|
{ // New plugin - not in table yet, so add it. If no install needed, mark it as 'installed'
|
||||||
if ($plug_info['name'])
|
//SecretR - update to latest XML version
|
||||||
|
if ($plug_info['@attributes']['name'])
|
||||||
{
|
{
|
||||||
// echo "New plugin to add: {$plug_info['name']}<br />";
|
// echo "New plugin to add: {$plug_info['name']}<br />";
|
||||||
// Can just add to DB - shouldn't matter that its not in our current table
|
// Can just add to DB - shouldn't matter that its not in our current table
|
||||||
// echo "Trying to insert: ".$eplug_folder."<br />";
|
// echo "Trying to insert: ".$eplug_folder."<br />";
|
||||||
$_installed = ($plug_info['installRequired'] == 'true' || $plug_info['installRequired'] == 1 ? 0 : 1 );
|
$_installed = ($plug_info['@attributes']['installRequired'] == 'true' || $plug_info['installRequired'] == 1 ? 0 : 1 );
|
||||||
$sql->db_Insert("plugin", "0, '".$tp -> toDB($plug_info['name'], true)."', '".$tp -> toDB($plug_info['@attributes']['version'], true)."', '".$tp -> toDB($plugin_path, true)."', {$_installed}, '{$eplug_addons}' ");
|
$sql->db_Insert("plugin", "0, '".$tp -> toDB($plug_info['@attributes']['name'], true)."', '".$tp -> toDB($plug_info['@attributes']['version'], true)."', '".$tp -> toDB($plugin_path, true)."', {$_installed}, '{$eplug_addons}' ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user