|
@@ 486-492 (lines=7) @@
|
| 483 |
|
|
| 484 |
|
foreach ($notifications as $notification) { |
| 485 |
|
switch ($notification) { |
| 486 |
|
case Constants::SF_NOT_FAQ_PUBLISHED: |
| 487 |
|
$tags['FAQ_URL'] = XOOPS_URL . '/modules/' . $smartModule->getVar('dirname') . '/faq.php?faqid=' . $this->faqid(); |
| 488 |
|
|
| 489 |
|
$notificationHandler->triggerEvent('global_faq', 0, 'published', $tags); |
| 490 |
|
$notificationHandler->triggerEvent('category_faq', $this->categoryid(), 'published', $tags); |
| 491 |
|
$notificationHandler->triggerEvent('faq', $this->faqid(), 'approved', $tags); |
| 492 |
|
break; |
| 493 |
|
|
| 494 |
|
case Constants::SF_NOT_FAQ_SUBMITTED: |
| 495 |
|
$tags['WAITINGFILES_URL'] = XOOPS_URL . '/modules/' . $smartModule->getVar('dirname') . '/admin/faq.php?faqid=' . $this->faqid(); |
|
@@ 500-505 (lines=6) @@
|
| 497 |
|
$notificationHandler->triggerEvent('category_faq', $this->categoryid(), 'submitted', $tags); |
| 498 |
|
break; |
| 499 |
|
|
| 500 |
|
case Constants::SF_NOT_QUESTION_PUBLISHED: |
| 501 |
|
$tags['FAQ_URL'] = XOOPS_URL . '/modules/' . $smartModule->getVar('dirname') . '/answer.php?faqid=' . $this->faqid(); |
| 502 |
|
$notificationHandler->triggerEvent('global_question', 0, 'published', $tags); |
| 503 |
|
$notificationHandler->triggerEvent('category_question', $this->categoryid(), 'published', $tags); |
| 504 |
|
$notificationHandler->triggerEvent('question', $this->faqid(), 'approved', $tags); |
| 505 |
|
break; |
| 506 |
|
|
| 507 |
|
case Constants::SF_NOT_QUESTION_SUBMITTED: |
| 508 |
|
$tags['WAITINGFILES_URL'] = XOOPS_URL . '/modules/' . $smartModule->getVar('dirname') . '/admin/question.php?op=mod&faqid=' . $this->faqid(); |