Revision 1865,
1.1 KB
checked in by JcDenis, 13 years ago
(diff) |
rateIt 0.9.7:
- Added entryFirstImage to wigdet
- Fixed bug with date sorting on widget
- Fixed bug with plugin ativityReport
- Removed about tabs and fixed typo
|
Line | |
---|
1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # This file is part of rateIt, a plugin for Dotclear 2. |
---|
4 | # |
---|
5 | # Copyright (c) 2009 JC Denis and contributors |
---|
6 | # jcdenis@gdwd.com |
---|
7 | # |
---|
8 | # Licensed under the GPL version 2.0 license. |
---|
9 | # A copy of this license is available in LICENSE file or at |
---|
10 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
11 | # -- END LICENSE BLOCK ------------------------------------ |
---|
12 | |
---|
13 | if (!defined('DC_RC_PATH')){return;} |
---|
14 | |
---|
15 | # This file is used with plugin activityReport |
---|
16 | $core->activityReport->addGroup('rateit',__('Plugin rateIt')); |
---|
17 | |
---|
18 | # from BEHAVIOR rateItAfterSet in rateit/inc/class.rateit.php |
---|
19 | $core->activityReport->addAction( |
---|
20 | 'rateit', |
---|
21 | 'set', |
---|
22 | __('new vote'), |
---|
23 | __('New vote of type "%s" was set with note of %s/%s'), |
---|
24 | 'rateItAfterSet', |
---|
25 | array('rateItActivityReportBehaviors','rateItSet') |
---|
26 | ); |
---|
27 | |
---|
28 | class rateItActivityReportBehaviors |
---|
29 | { |
---|
30 | public static function rateItSet($cur) |
---|
31 | { |
---|
32 | $logs = array( |
---|
33 | $cur->rateit_type, |
---|
34 | $cur->rateit_note, |
---|
35 | $cur->rateit_quotient |
---|
36 | ); |
---|
37 | |
---|
38 | $GLOBALS['core']->activityReport->addLog('rateit','set',$logs); |
---|
39 | } |
---|
40 | } |
---|
41 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.