Commit f80f7a7d authored by Steven Wittens's avatar Steven Wittens
Browse files

Revert break tag.

parent bd097f45
......@@ -2199,7 +2199,7 @@ function node_preview($node) {
function theme_node_preview($node) {
$output = '<div class="preview">';
if ($node->teaser && $node->teaser != $node->body) {
drupal_set_message(t('The trimmed version of your post shows what your post looks like when promoted to the main page or when exported for syndication. You can insert the delimiter "&lt;break&gt;" (without the quotes) to fine-tune where your post gets split.'));
drupal_set_message(t('The trimmed version of your post shows what your post looks like when promoted to the main page or when exported for syndication. You can insert the delimiter "&lt;!--break--&gt;" (without the quotes) to fine-tune where your post gets split.'));
$output .= '<h3>'. t('Preview trimmed version') .'</h3>';
$output .= node_view(drupal_clone($node), 1, FALSE, 0);
$output .= '<h3>'. t('Preview full version') .'</h3>';
......
......@@ -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();
}
/**
......@@ -3478,6 +3477,19 @@ function system_update_1019() {
return array();
}
/**
* 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"
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment