From: <var...@us...> - 2021-09-14 14:07:16
|
Revision: 10553 http://sourceforge.net/p/phpwiki/code/10553 Author: vargenau Date: 2021-09-14 14:07:14 +0000 (Tue, 14 Sep 2021) Log Message: ----------- lib/plugin/NewPagesPerUser.php: add random number in id so that multiple calls of plugin are allowed in same page Modified Paths: -------------- trunk/lib/plugin/NewPagesPerUser.php Modified: trunk/lib/plugin/NewPagesPerUser.php =================================================================== --- trunk/lib/plugin/NewPagesPerUser.php 2021-09-14 10:37:51 UTC (rev 10552) +++ trunk/lib/plugin/NewPagesPerUser.php 2021-09-14 14:07:14 UTC (rev 10553) @@ -126,7 +126,7 @@ uasort($parr['author'], array($this, 'cmp_by_count')); foreach ($parr['author'] as $user => $authorarr) { $count = $authorarr['count']; - $id = preg_replace("/ /", "_", 'pages-' . $monthname . '-' . $user); + $id = preg_replace("/ /", "_", 'pages-' . $monthname . '-' . $user . '-' . rand()); $html->pushContent (HTML::tr(HTML::td($nbsp, $nbsp, HTML::img(array('id' => "$id-img", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |