]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #2926: Fixed upgrade for plugin user settings.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 15 Feb 2011 18:46:53 +0000 (18:46 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 15 Feb 2011 18:46:53 +0000 (18:46 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8253 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/upgrades/2011010101.php

index bb12908549fc3c94d31f46452a1cada5aac19752..be1adac1a9a77352219c6988cb1ab70d6b4aca87 100644 (file)
@@ -21,8 +21,8 @@ $r = update_data($q);
 
 // rewrite all plugin:setting:* to ELGG_PLUGIN_USER_SETTING_PREFIX . *
 $q = "UPDATE {$db_prefix}private_settings
-       SET name = replace(name, 'plugin:setting', '" . ELGG_PLUGIN_USER_SETTING_PREFIX . "')
-       WHERE name LIKE 'plugin:setting:%'";
+       SET name = replace(name, 'plugin:settings:', '" . ELGG_PLUGIN_USER_SETTING_PREFIX . "')
+       WHERE name LIKE 'plugin:settings:%'";
 
 $r = update_data($q);