@@ 92-103 (lines=12) @@ | ||
89 | $newFaqObj->sendNotifications(array(_SF_NOT_QUESTION_PUBLISHED)); |
|
90 | ||
91 | $redirect_msg = _MD_SF_REQUEST_RECEIVED_AND_PUBLISHED; |
|
92 | } else { |
|
93 | // Subscribe the user to On Published notification, if requested |
|
94 | if ($notifypub == 1) { |
|
95 | include_once XOOPS_ROOT_PATH . '/include/notification_constants.php'; |
|
96 | $notificationHandler = xoops_getHandler('notification'); |
|
97 | $notificationHandler->subscribe('question', $newFaqObj->faqid(), 'approved', XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE); |
|
98 | } |
|
99 | // Send notifications |
|
100 | $newFaqObj->sendNotifications(array(_SF_NOT_QUESTION_SUBMITTED)); |
|
101 | ||
102 | $redirect_msg = _MD_SF_REQUEST_RECEIVED_NEED_APPROVAL; |
|
103 | } |
|
104 | ||
105 | //redirect_header("javascript:history.go(-2)", 3, $redirect_msg); |
|
106 | redirect_header('index.php', 2, $redirect_msg); |
@@ 254-265 (lines=12) @@ | ||
251 | $newFaqObj->sendNotifications(array(_SF_NOT_FAQ_PUBLISHED)); |
|
252 | ||
253 | $redirect_msg = _MD_SF_QNA_RECEIVED_AND_PUBLISHED; |
|
254 | } else { |
|
255 | // Subscribe the user to On Published notification, if requested |
|
256 | if ($notifypub == 1) { |
|
257 | include_once XOOPS_ROOT_PATH . '/include/notification_constants.php'; |
|
258 | $notificationHandler = xoops_getHandler('notification'); |
|
259 | $notificationHandler->subscribe('faq', $newFaqObj->faqid(), 'approved', XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE); |
|
260 | } |
|
261 | // Send notifications |
|
262 | $newFaqObj->sendNotifications(array(_SF_NOT_FAQ_SUBMITTED)); |
|
263 | ||
264 | $redirect_msg = _MD_SF_QNA_RECEIVED_NEED_APPROVAL; |
|
265 | } |
|
266 | ||
267 | redirect_header('index.php', 2, $redirect_msg); |
|
268 | break; |