Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_karma
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23961/serendipity_event_karma
Modified Files:
serendipity_event_karma.php
Log Message:
statistics bugfix
Index: serendipity_event_karma.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_karma/serendipity_event_karma.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- serendipity_event_karma.php 7 Jul 2004 15:44:52 -0000 1.11
+++ serendipity_event_karma.php 9 Jul 2004 09:35:12 -0000 1.12
@@ -109,6 +109,7 @@
$propbag->add('name', PLUGIN_KARMA_NAME);
$propbag->add('description', PLUGIN_KARMA_BLAHBLAH);
$propbag->add('event_hooks', array('frontend_configure' => true, 'entry_display' => true, 'css' => true, 'event_additional_statistics' => true));
+ $propbag->add('scrambles_true_content', true);
$propbag->add('configuration', array('karma_active', 'visits_active', 'max_entrytime', 'max_votetime', 'extended_only', 'max_karmatime', 'logging'));
}
@@ -399,7 +400,7 @@
JOIN {$serendipity['dbPrefix']}entries
AS e
ON k.entryid = e.id
- ORDER BY k.{$rows[0]} {$rows[1]} GROUP BY e.id LIMIT {$addData['maxitems']}";
+ GROUP BY e.id ORDER BY k.{$rows[0]} {$rows[1]} LIMIT {$addData['maxitems']}";
$sql_rows = serendipity_db_query($q);
?>
@@ -423,6 +424,10 @@
break;
case 'entry_display':
+ if ($bag->get('scrambles_true_content') && is_array($addData) && isset($addData['no_scramble'])) {
+ return true;
+ }
+
if ($this->get_config('version') != PLUGIN_KARMA_VERSION) {
$this->checkScheme();
}
|