|
From: <var...@us...> - 2021-11-17 08:09:43
|
Revision: 10652
http://sourceforge.net/p/phpwiki/code/10652
Author: vargenau
Date: 2021-11-17 08:09:41 +0000 (Wed, 17 Nov 2021)
Log Message:
-----------
PopularTagsPlugin: pagename and noheader are not used, update help page
Modified Paths:
--------------
trunk/lib/plugin/PopularTags.php
trunk/pgsrc/Help%2FPopularTagsPlugin
Modified: trunk/lib/plugin/PopularTags.php
===================================================================
--- trunk/lib/plugin/PopularTags.php 2021-11-16 16:48:37 UTC (rev 10651)
+++ trunk/lib/plugin/PopularTags.php 2021-11-17 08:09:41 UTC (rev 10652)
@@ -45,10 +45,9 @@
function getDefaultArguments()
{
- return array('pagename' => '[pagename]',
+ return array(
'limit' => 10,
'mincount' => 5,
- 'noheader' => 0,
);
}
@@ -71,8 +70,7 @@
$name = $b->getName();
if (preg_match("/^" . _("Template") . "/", $name)) continue;
$pages = $b->getBackLinks();
- $bl[] = array('name' => $name,
- 'count' => $pages->count());
+ $bl[] = array('name' => $name, 'count' => $pages->count());
}
usort($bl, array($this, 'cmp_by_count'));
@@ -84,8 +82,7 @@
$count = $b['count'];
if ($count < $mincount) break;
if ($i > $limit) break;
- $wo = preg_replace("/^(" . _("Category") . "|"
- . _("Topic") . ")/", "", $name);
+ $wo = preg_replace("/^(" . _("Category") . "|" . _("Topic") . ")/", "", $name);
$wo = HTML(HTML::span($wo), HTML::raw(" "), HTML::small("(" . $count . ")"));
$link = WikiLink($name, 'auto', $wo);
$html->pushContent(HTML::li($link));
Modified: trunk/pgsrc/Help%2FPopularTagsPlugin
===================================================================
--- trunk/pgsrc/Help%2FPopularTagsPlugin 2021-11-16 16:48:37 UTC (rev 10651)
+++ trunk/pgsrc/Help%2FPopularTagsPlugin 2021-11-17 08:09:41 UTC (rev 10652)
@@ -1,4 +1,4 @@
-Date: Tue, 16 Nov 2021 17:02:08 +0000
+Date: Wed, 17 Nov 2021 09:08:23 +0000
Mime-Version: 1.0 (Produced by PhpWiki 1.6.0)
Content-Type: application/x-phpwiki;
pagename=Help%2FPopularTagsPlugin;
@@ -22,21 +22,13 @@
! Description
! Default value
|-
-| **pagename**
-|
-|
-|-
| **limit**
-|
+| Maximum number of tags to display
| 10
|-
| **mincount**
-|
+| Minimum popularity of the tag (number of backlinks)
| 5
-|-
-| **noheader**
-| Boolean. If true, header should be omitted.
-| false
|}
== Example ==
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|