mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Allow plugins to change admin category
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
* Administration - Site Maintenance
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/plugin_class.php,v $
|
||||
* $Revision: 1.117 $
|
||||
* $Date: 2009-11-20 05:01:31 $
|
||||
* $Author: e107coders $
|
||||
* $Revision: 1.118 $
|
||||
* $Date: 2009-12-09 22:38:18 $
|
||||
* $Author: bugrain $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -195,11 +195,11 @@ class e107plugin
|
||||
{ // Update the addons needed by the plugin
|
||||
$pluginDBList[$plugin_path]['status'] = 'exists';
|
||||
|
||||
// Check for missing plugin_category in plugin table.
|
||||
if ($pluginDBList[$plugin_path]['plugin_category'] == '')
|
||||
// Check for missing plugin_category in plugin table.
|
||||
if ($pluginDBList[$plugin_path]['plugin_category'] == '' || $pluginDBList[$plugin_path]['plugin_category'] != $plug_info['category'])
|
||||
{
|
||||
// print_a($plug_info);
|
||||
$pluginDBList[$plugin_path]['status'] = 'update';
|
||||
// print_a($plug_info);
|
||||
$pluginDBList[$plugin_path]['status'] = 'update';
|
||||
$pluginDBList[$plugin_path]['plugin_category'] = (varsettrue($plug_info['category']) ) ? $plug_info['category'] : "misc";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user