summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2007-01-05 22:03:06 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2007-01-05 22:03:06 +0000
commitf80f7a7dbd78c68ca38bc6279c942db053f62a89 (patch)
tree6fbe5b92450a1cb3808576a0fa6a2739c8d5d6ef /modules/system/system.install
parentbd097f45fe20a494519c0d1b263d7cc3cf6743f2 (diff)
downloadbrdo-f80f7a7dbd78c68ca38bc6279c942db053f62a89.tar.gz
brdo-f80f7a7dbd78c68ca38bc6279c942db053f62a89.tar.bz2
Revert break tag.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install20
1 files changed, 16 insertions, 4 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 17bd77383..cda02552d 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -3452,12 +3452,11 @@ function system_update_1017() {
}
/**
- * Change break tag.
+ * Change break tag (was removed, see 1020).
*/
function system_update_1018() {
- $ret = array();
- $ret[] = update_sql("UPDATE {node_revisions} SET body = REPLACE(body, '<!--break-->', '<break>')");
- return $ret;
+ variable_set('update_1020_ok', TRUE);
+ return array();
}
/**
@@ -3479,6 +3478,19 @@ function system_update_1019() {
}
/**
+ * Change break tag back (was removed from head).
+ */
+function system_update_1020() {
+ $ret = array();
+ if (!variable_get('update_1020_ok', FALSE)) {
+ $ret[] = update_sql("UPDATE {node_revisions} SET body = REPLACE(body, '<break>', '<!--break-->')");
+ }
+ variable_del('update_1020_ok');
+ return $ret;
+}
+
+
+/**
* @} End of "defgroup updates-4.7-to-5.0"
*/