@@ 349-367 (lines=19) @@ | ||
346 | $call_updatefunc = true; |
|
347 | // RMV-NOTIFY |
|
348 | $notify_event = 'comment'; |
|
349 | } else { |
|
350 | $comment->setVar('dohtml', 0); |
|
351 | switch ($xoops->getModuleConfig('com_rule')) { |
|
352 | case static::APPROVE_ALL: |
|
353 | case static::APPROVE_USER: |
|
354 | $comment->setVar('status', static::STATUS_ACTIVE); |
|
355 | $add_userpost = true; |
|
356 | $call_approvefunc = true; |
|
357 | $call_updatefunc = true; |
|
358 | // RMV-NOTIFY |
|
359 | $notify_event = 'comment'; |
|
360 | break; |
|
361 | case static::APPROVE_ADMIN: |
|
362 | default: |
|
363 | $comment->setVar('status', static::STATUS_PENDING); |
|
364 | $notify_event = 'comment_submit'; |
|
365 | break; |
|
366 | } |
|
367 | } |
|
368 | if ($xoops->getModuleConfig('com_anonpost', $module->getVar('dirname')) |
|
369 | && $comment->getVar('noname') |
|
370 | ) { |
|
@@ 388-406 (lines=19) @@ | ||
385 | ); |
|
386 | } |
|
387 | } |
|
388 | if ($comment->getVar('uid') == 0) { |
|
389 | switch ($xoops->getModuleConfig('com_rule')) { |
|
390 | case static::APPROVE_ALL: |
|
391 | $comment->setVar('status', static::STATUS_ACTIVE); |
|
392 | $add_userpost = true; |
|
393 | $call_approvefunc = true; |
|
394 | $call_updatefunc = true; |
|
395 | // RMV-NOTIFY |
|
396 | $notify_event = 'comment'; |
|
397 | break; |
|
398 | case static::APPROVE_ADMIN: |
|
399 | case static::APPROVE_USER: |
|
400 | default: |
|
401 | $comment->setVar('status', static::STATUS_PENDING); |
|
402 | // RMV-NOTIFY |
|
403 | $notify_event = 'comment_submit'; |
|
404 | break; |
|
405 | } |
|
406 | } |
|
407 | } |
|
408 | if ($comment->getVar('title') == '') { |
|
409 | $comment->setVar('title', XoopsLocale::NO_TITLE); |