Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_karma
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3575/plugins/serendipity_event_karma
Modified Files:
serendipity_event_karma.php
Log Message:
* allow unlimited ammount of nested directories inside plugin directory(see mailinglist)
* unify "get current url" for plugins: karma, templatedropdown, shoutbox
Index: serendipity_event_karma.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_karma/serendipity_event_karma.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- serendipity_event_karma.php 24 Nov 2004 10:17:16 -0000 1.25
+++ serendipity_event_karma.php 6 Dec 2004 12:45:43 -0000 1.26
@@ -516,7 +516,8 @@
$max_karmatime = $karmatime * 24 * 60 * 60;
$now = time();
- $url = $_SERVER['REQUEST_URI'] . (strpos($_SERVER['REQUEST_URI'], '?') !== false ? '&' : '?');
+ $url = serendipity_currentURL() . '&';
+
$karma = (isset($serendipity['COOKIE']['karmaVote']) ? unserialize($serendipity['COOKIE']['karmaVote']) : array());
$link_1 = '<a class="serendipity_karmaVoting_link1" href="#" onclick="javascript:location.href=\'%5$sserendipity[karmaVote]=2&serendipity[karmaId]=%1$s#karma_vote%1$s\';" title="' . sprintf(PLUGIN_KARMA_RATE, PLUGIN_KARMA_VOTEPOINT_1) . '">++</a>';
|