From b0288a46d8f24b0320da588fd4142060ac75d4fe Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Thu, 24 May 2001 08:53:07 +0000 Subject: [PATCH] - Fixed small glitch in check_preview(). - Updated CHANGELOG. --- CHANGELOG | 5 +++-- includes/common.inc | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index c556edd4e720..c416ffc414b0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -10,8 +10,9 @@ drupal x.xx, xx/xx/xxxx (CVS, unstable) - rewrote section code and renamed it to structure.module: * supports both "categories" and "topics" (cfr. Scoop, SlashCode). Topics can be nested to create a multi-level hierarchy. * added "auto-post new submissions" feature versus "moderate new submissions". -- added settings.module: +- added conf.module: * moved most of the configuration options from hostname.conf to the new administration section. + * added support for custom "filters" - added moderate.module: * allows to assign users editorial/moderator rights to certain nodes or topics. - added page.module: @@ -24,7 +25,7 @@ drupal x.xx, xx/xx/xxxx (CVS, unstable) * allows to display and mail CVS log messages as daily digests. - added book.module: * allows collaborative handbook writing: primary used for drupal documentation. -- removed cron.module and integrated it into settings.module. +- removed cron.module and integrated it into conf.module. - various updates: * introduced links/drupal tags: [[link]] * added preview functionality when submitting new content (such as a story) from the administration pages. diff --git a/includes/common.inc b/includes/common.inc index 7e44427128e7..d7ae5ae631d0 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -73,7 +73,7 @@ function check_name($name) { } function check_preview($text) { - return check_output(check_input($text), 1); + return check_output(check_input($text)); } function check_query($text) { @@ -87,7 +87,7 @@ function check_input($text) { function check_output($text, $nl2br = 0) { global $na; - return ($text) ? (($nl2br) ? nl2br(stripslashes($text)) : stripslashes($text)) : $na; + return ($text) ? ($nl2br ? nl2br(stripslashes($text)) : stripslashes($text)) : $na; } function format_plural($count, $singular, $plural) { -- GitLab