OSDN Git Service

アイテム投稿時「新しいカテゴリ」にすると、Pingしない設定でもPing画面に進む
authorshizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Wed, 11 Feb 2009 11:33:00 +0000 (11:33 +0000)
committershizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Wed, 11 Feb 2009 11:33:00 +0000 (11:33 +0000)
アイテム投稿時既存カテゴリを選ぶと、Pingする設定でもPing画面に進まずにアイテムリストに戻る

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@934 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/nucleus/documentation/history.html
utf8/nucleus/libs/ADMIN.php

index 721be45..a9c3fd8 100755 (executable)
@@ -44,6 +44,7 @@
        <li>\r
                <strong>Nucleus v3.4 SVN</strong>\r
                <ul>\r
+                       <li>FIXED: the unwished ping after adding an item to a new category (what you have written here: http://forum.nucleuscms.org/viewtopic.php?p=89142#89142)(shizuki)</li>\r
                        <li>CHANGED: ブックマークレット差し替え(nucleus/libs/include/bookmarklet-add.template、bookmarklet-edit.template)(Bookmarklet use tab navigation)(shizuki)</li>\r
                        <li>CHANGED: NP_SkinFilesオプション用言語定義追加(NP_SkinFiles option word update via language file)(shizuki)</li>\r
                        <li>UPDATED: NP_SkinFiles 2.03に差し替え(code:yama/commit:shizuki)(NP_SkinFiles update to 2.03)(code:yama,katsumi/commit:shizuki)</li>\r
index 54875cf..bef5e66 100755 (executable)
@@ -1512,16 +1512,17 @@ class ADMIN {
                $btimestamp = $blog->getCorrectTime();\r
                $bPingInfo  = ($blog->sendPing() && numberOfEventSubscriber('SendPing') > 0);\r
                $item       = $manager->getItem(intval($result['itemid']), 1, 1);\r
-               $iPingInfo  = (!$item['draft'] && postVar('dosendping') && $item['timestamp'] < $btimestamp);\r
+               $iPingInfo  = (!$item['draft'] && postVar('dosendping') && $item['timestamp'] <= $btimestamp);\r
                if ($iPingInfo && $bPingInfo) {\r
                        $nextAction = 'sendping';\r
                } else {\r
                        $nextAction = 'itemlist';\r
                }\r
                if ($result['status'] == 'newcategory') {\r
-                       $distURI = ($nextAction = 'sendping') ? $manager->addTicketToUrl($CONF['AdminURL'] . 'index.php?action='\r
-                                        . $nextAction . '&blogid=' . intval($blogid)) : \r
-                                          '';\r
+//                     $distURI = ($nextAction == 'sendping') ? $manager->addTicketToUrl($CONF['AdminURL'] . 'index.php?action='\r
+//                                      . $nextAction . '&blogid=' . intval($blogid)) : \r
+//                                        '';\r
+                       $distURI = $manager->addTicketToUrl($CONF['AdminURL'] . 'index.php?action=' . $nextAction . '&blogid=' . intval($blogid));\r
                        $this->action_categoryedit($result['catid'], $blogid, $distURI);\r
                } else {\r
                        $methodName = 'action_' . $nextAction;\r