mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +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).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/plugin_class.php,v $
|
||||
| $Revision: 1.52 $
|
||||
| $Date: 2008-12-03 22:29:46 $
|
||||
| $Author: e107steved $
|
||||
| $Revision: 1.53 $
|
||||
| $Date: 2008-12-05 14:18:51 $
|
||||
| $Author: secretr $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@@ -212,13 +212,14 @@ class e107plugin
|
||||
}
|
||||
else
|
||||
{ // 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 />";
|
||||
// Can just add to DB - shouldn't matter that its not in our current table
|
||||
// echo "Trying to insert: ".$eplug_folder."<br />";
|
||||
$_installed = ($plug_info['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}' ");
|
||||
$_installed = ($plug_info['@attributes']['installRequired'] == 'true' || $plug_info['installRequired'] == 1 ? 0 : 1 );
|
||||
$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