From 7ded6cb804ef6b215d9cc6e042bc310a335aee92 Mon Sep 17 00:00:00 2001 From: sakamocchi Date: Sun, 13 Mar 2011 04:09:51 +0000 Subject: [PATCH] Fix sent mail has 'rn' in its break line, refering to http://japan.nucleuscms.org/bb/viewtopic.php?p=26741. git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@1155 1ca29b6e-896d-4ea0-84a5-967f57386b96 --- utf8/nucleus/libs/BLOG.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utf8/nucleus/libs/BLOG.php b/utf8/nucleus/libs/BLOG.php index 1c99b61..db4e1f8 100755 --- a/utf8/nucleus/libs/BLOG.php +++ b/utf8/nucleus/libs/BLOG.php @@ -267,6 +267,10 @@ class BLOG { $manager->notify('PreAddItem',array('title' => &$title, 'body' => &$body, 'more' => &$more, 'blog' => &$this, 'authorid' => &$authorid, 'timestamp' => &$timestamp, 'closed' => &$closed, 'draft' => &$draft, 'catid' => &$catid)); + // send notification mail + if (!$draft && !$isFuture && $this->getNotifyAddress() && $this->notifyOnNewItem()) + $this->sendNewItemNotification($itemid, $title, $body); + $title = sql_real_escape_string($title); $body = sql_real_escape_string($body); $more = sql_real_escape_string($more); @@ -281,10 +285,6 @@ class BLOG { if (!$draft) $this->updateUpdateFile(); - // send notification mail - if (!$draft && !$isFuture && $this->getNotifyAddress() && $this->notifyOnNewItem()) - $this->sendNewItemNotification($itemid, stripslashes($title), stripslashes($body)); - return $itemid; } -- 2.11.0