1. Is it correct ?
lib/plugins.php:203
Code: Select all
function api_plugin_install ($plugin) {
global $config;
include_once($config['base_path'] . "/plugins/$plugin/setup.php");
$exists = db_fetch_assoc("SELECT id FROM plugin_config WHERE directory = '$plugin'", false);
if (!count($exists)) {
db_execute("DELETE FROM plugin_config WHERE directory = '$plugin'");
}
........
Code: Select all
function api_plugin_install ($plugin) {
global $config;
include_once($config['base_path'] . "/plugins/$plugin/setup.php");
$exists = db_fetch_assoc("SELECT id FROM plugin_config WHERE directory = '$plugin'", false);
if (count($exists)) {
db_execute("DELETE FROM plugin_config WHERE directory = '$plugin'");
}
........
Add one sting in plugin_update:
Code: Select all
api_plugin_register_realm('plugin', 'plugin_1.php,plugin_2.php', 'Configure plugin', 1);
will not remove existed row in table [plugin_realms].
3. If my plugin updated, I need manualy update it version in table [plugin_config] ?