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:
@@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user