|
@@ -30,12 +30,12 @@ if (!isset($modSettings['package_make_full_backups']) && isset($modSettings['pac
|
|
|
|
|
|
---# Copying the current "allow users to disable word censor" setting...
|
|
|
---{
|
|
|
-if (!isset($modSettings['allow_no_censor']))
|
|
|
+if (!isset($modSettings['allow_no_censored']))
|
|
|
{
|
|
|
$request = upgrade_query("
|
|
|
SELECT value
|
|
|
FROM {$db_prefix}settings
|
|
|
- WHERE variable='allow_no_censor'
|
|
|
+ WHERE variable='allow_no_censored'
|
|
|
AND id_theme = 1 OR id_theme = '$modSettings[theme_default]'
|
|
|
");
|
|
|
|
|
@@ -46,7 +46,7 @@ if (!isset($modSettings['allow_no_censor']))
|
|
|
{
|
|
|
upgrade_query("
|
|
|
INSERT INTO {$db_prefix}settings
|
|
|
- VALUES ('allow_no_censor', 1)
|
|
|
+ VALUES ('allow_no_censored', 1)
|
|
|
");
|
|
|
|
|
|
// Don't do this twice...
|
|
@@ -370,36 +370,6 @@ if (file_exists($GLOBALS['boarddir'] . '/Themes/core'))
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-/******************************************************************************/
|
|
|
---- Moving "allow users to disable word censor" setting...
|
|
|
-/******************************************************************************/
|
|
|
----#
|
|
|
----{
|
|
|
- $request = upgrade_query("
|
|
|
- SELECT value
|
|
|
- FROM {$db_prefix}themes
|
|
|
- WHERE variable='allow_no_censor'
|
|
|
- AND id_theme = 1 OR id_theme = '$modSettings[theme_default]'
|
|
|
- ");
|
|
|
-
|
|
|
- // Is it set for either "default" or the one they've set as default?
|
|
|
- while ($row = mysql_fetch_assoc($request))
|
|
|
- {
|
|
|
- if ($row['value'] == 1)
|
|
|
- {
|
|
|
- upgrade_query("
|
|
|
- INSERT INTO {$db_prefix}settings
|
|
|
- VALUES ('allow_no_censor', 1)
|
|
|
- ");
|
|
|
-
|
|
|
- // Don't do this multiple twice...
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
----}
|
|
|
----#
|
|
|
-
|
|
|
/******************************************************************************/
|
|
|
--- Adding support for drafts
|
|
|
/******************************************************************************/
|