1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Allow plugins to change admin category

This commit is contained in:
bugrain
2009-12-09 22:38:18 +00:00
parent aca8f69300
commit 9328324388

View File

@@ -9,9 +9,9 @@
* Administration - Site Maintenance * Administration - Site Maintenance
* *
* $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.117 $ * $Revision: 1.118 $
* $Date: 2009-11-20 05:01:31 $ * $Date: 2009-12-09 22:38:18 $
* $Author: e107coders $ * $Author: bugrain $
* *
*/ */
@@ -195,11 +195,11 @@ class e107plugin
{ // Update the addons needed by the plugin { // Update the addons needed by the plugin
$pluginDBList[$plugin_path]['status'] = 'exists'; $pluginDBList[$plugin_path]['status'] = 'exists';
// Check for missing plugin_category in plugin table. // Check for missing plugin_category in plugin table.
if ($pluginDBList[$plugin_path]['plugin_category'] == '') if ($pluginDBList[$plugin_path]['plugin_category'] == '' || $pluginDBList[$plugin_path]['plugin_category'] != $plug_info['category'])
{ {
// print_a($plug_info); // print_a($plug_info);
$pluginDBList[$plugin_path]['status'] = 'update'; $pluginDBList[$plugin_path]['status'] = 'update';
$pluginDBList[$plugin_path]['plugin_category'] = (varsettrue($plug_info['category']) ) ? $plug_info['category'] : "misc"; $pluginDBList[$plugin_path]['plugin_category'] = (varsettrue($plug_info['category']) ) ? $plug_info['category'] : "misc";
} }