load_user_plugins: only load data when schema version > 100

This commit is contained in:
Andrew Dolgov 2012-12-27 20:28:06 +04:00
parent d26111f541
commit e9c04fd4e3
1 changed files with 4 additions and 1 deletions

View File

@ -709,9 +709,12 @@
global $pluginhost; global $pluginhost;
$pluginhost->load($plugins, $pluginhost::KIND_USER, $owner_uid); $pluginhost->load($plugins, $pluginhost::KIND_USER, $owner_uid);
if (get_schema_version($link) > 100) {
$pluginhost->load_data(); $pluginhost->load_data();
} }
} }
}
function login_sequence($link, $login_form = 0) { function login_sequence($link, $login_form = 0) {
if (SINGLE_USER_MODE) { if (SINGLE_USER_MODE) {