[CLEANUP] Code formatting.
Backported from master branch. Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
committed by
Thomas Hochstein
parent
b653ed867c
commit
9a27978179
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @version
|
* @version
|
||||||
* @author Translator Name <yourmail@example.com>
|
* @author Translator Name <yourmail@example.com>
|
||||||
* EN-Revision: Revision of lang_en.inc.php
|
* EN-Revision: Revision of lang_en.inc.php
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1124,8 +1124,8 @@ class serendipity_event_spamblock extends serendipity_event
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for forced comment moderation (X days)
|
// Check for forced comment moderation (X days)
|
||||||
if ($addData['type'] == 'NORMAL' && $moderation_auto == true && (
|
if ($addData['type'] == 'NORMAL' && $moderation_auto == true && (
|
||||||
( $forcemoderation == 0 ) ||
|
( $forcemoderation == 0 ) ||
|
||||||
( $forcemoderation > 0 && $eventData['timestamp'] < (time() - ($forcemoderation * 60 * 60 * 24)) ) ) ) {
|
( $forcemoderation > 0 && $eventData['timestamp'] < (time() - ($forcemoderation * 60 * 60 * 24)) ) ) ) {
|
||||||
$this->log($logfile, $eventData['id'], $forcemoderation_treat, PLUGIN_EVENT_SPAMBLOCK_REASON_FORCEMODERATION, $addData);
|
$this->log($logfile, $eventData['id'], $forcemoderation_treat, PLUGIN_EVENT_SPAMBLOCK_REASON_FORCEMODERATION, $addData);
|
||||||
if ($forcemoderation_treat == 'reject') {
|
if ($forcemoderation_treat == 'reject') {
|
||||||
|
|||||||
@@ -192,4 +192,4 @@
|
|||||||
<pre>{$memSnaps|print_r}</pre>
|
<pre>{$memSnaps|print_r}</pre>
|
||||||
</section>
|
</section>
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user