Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_spamblock
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10634/plugins/serendipity_event_spamblock
Modified Files:
serendipity_event_spamblock.php
Log Message:
unbreak gravatar plugins. instead the functions that display comments handle
a 'no_email' setting.
also don't hide things for logged in users.
Index: serendipity_event_spamblock.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- serendipity_event_spamblock.php 24 Nov 2004 15:30:00 -0000 1.30
+++ serendipity_event_spamblock.php 24 Nov 2004 15:52:03 -0000 1.31
@@ -285,10 +285,11 @@
switch($event) {
case 'fetchcomments':
- if (is_array($eventData) && serendipity_db_bool($this->get_config('hide_email', false))) {
+ if (is_array($eventData) && !$_SESSION['serendipityAuthedUser'] && serendipity_db_bool($this->get_config('hide_email', true))) {
+ // Will force emails to be not displayed in comments and RSS feed for comments. Will not apply to logged in admins (so not in the backend as well)
@reset($eventData);
while(list($idx, $comment) = each($eventData)) {
- $eventData[$idx]['email'] = '';
+ $eventData[$idx]['no_email'] = true;
}
}
break;
|