OSDN Git Service

Fix sent mail has 'rn' in its break line, refering to http://japan.nucleuscms.org...
authorsakamocchi <sakamocchi@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Sun, 13 Mar 2011 04:09:51 +0000 (04:09 +0000)
committersakamocchi <sakamocchi@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Sun, 13 Mar 2011 04:09:51 +0000 (04:09 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@1155 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/nucleus/libs/BLOG.php

index 1c99b61..db4e1f8 100755 (executable)
@@ -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;
        }