From: <var...@us...> - 2009-04-18 16:21:59
|
Revision: 6784 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6784&view=rev Author: vargenau Date: 2009-04-18 16:21:55 +0000 (Sat, 18 Apr 2009) Log Message: ----------- Invert $wanted and $wantedfrom Modified Paths: -------------- trunk/lib/plugin/WantedPages.php Modified: trunk/lib/plugin/WantedPages.php =================================================================== --- trunk/lib/plugin/WantedPages.php 2009-04-18 16:19:38 UTC (rev 6783) +++ trunk/lib/plugin/WantedPages.php 2009-04-18 16:21:55 UTC (rev 6784) @@ -94,8 +94,8 @@ list($offset, $maxcount) = $pagelist->limit($limit); $wanted_iter = $dbi->wantedPages($exclude_from, $exclude, $sortby, $limit); while ($row = $wanted_iter->next()) { - $wanted = $row['pagename']; - $wantedfrom = $row['wantedfrom']; + $wantedfrom = $row['pagename']; + $wanted = $row['wantedfrom']; // ignore duplicates: if (empty($pagelist->_wpagelist[$wanted])) $pagelist->addPage($wanted); @@ -113,7 +113,8 @@ $page_handle = $dbi->getPage($page); $links = $page_handle->getPageLinks(true); // include_empty while ($link_handle = $links->next()) { - if (! $dbi->isWikiPage($linkname = $link_handle->getName())) { + $linkname = $link_handle->getName(); + if (! $dbi->isWikiPage($linkname)) { $pagelist->addPage($linkname); //if (!array_key_exists($linkname, $this->_wpagelist)) $pagelist->_wpagelist[$linkname][] = 1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2012-12-07 12:12:25
|
Revision: 8624 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8624&view=rev Author: vargenau Date: 2012-12-07 12:12:19 +0000 (Fri, 07 Dec 2012) Log Message: ----------- No need for sprintf Modified Paths: -------------- trunk/lib/plugin/WantedPages.php Modified: trunk/lib/plugin/WantedPages.php =================================================================== --- trunk/lib/plugin/WantedPages.php 2012-12-07 11:49:09 UTC (rev 8623) +++ trunk/lib/plugin/WantedPages.php 2012-12-07 12:12:19 UTC (rev 8624) @@ -129,10 +129,11 @@ arsort($this->_wpagelist); }*/ if (!$noheader) { - if ($page) + if ($page) { $pagelist->setCaption(sprintf(_("Wanted Pages for %s:"), $page)); - else - $pagelist->setCaption(sprintf(_("Wanted Pages in this wiki:"))); + } else { + $pagelist->setCaption(_("Wanted Pages in this wiki:")); + } } // reference obviously doesn't work, so force an update to add _wpagelist to parentobj if (isset($pagelist->_columns[1]) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-02-23 18:03:49
|
Revision: 10274 http://sourceforge.net/p/phpwiki/code/10274 Author: vargenau Date: 2021-02-23 18:03:47 +0000 (Tue, 23 Feb 2021) Log Message: ----------- plugin WantedPages: better test boolean argument "noheader" Modified Paths: -------------- trunk/lib/plugin/WantedPages.php Modified: trunk/lib/plugin/WantedPages.php =================================================================== --- trunk/lib/plugin/WantedPages.php 2021-02-23 18:00:42 UTC (rev 10273) +++ trunk/lib/plugin/WantedPages.php 2021-02-23 18:03:47 UTC (rev 10274) @@ -83,6 +83,15 @@ : $args['exclude_from']; // <! plugin-list !> extract($args); + + if (($noheader == '0') || ($noheader == 'false')) { + $noheader = false; + } elseif (($noheader == '1') || ($noheader == 'true')) { + $noheader = true; + } else { + return $this->error(sprintf(_("Argument '%s' must be a boolean"), "noheader")); + } + if ($page == _("WantedPages")) $page = ""; // There's probably a more memory-efficient way to do this (eg This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2012-12-07 14:23:33
|
Revision: 8629 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8629&view=rev Author: vargenau Date: 2012-12-07 14:23:26 +0000 (Fri, 07 Dec 2012) Log Message: ----------- Remove unused variable Modified Paths: -------------- trunk/lib/plugin/WantedPages.php Modified: trunk/lib/plugin/WantedPages.php =================================================================== --- trunk/lib/plugin/WantedPages.php 2012-12-07 14:17:32 UTC (rev 8628) +++ trunk/lib/plugin/WantedPages.php 2012-12-07 14:23:26 UTC (rev 8629) @@ -180,7 +180,6 @@ function _getValue(&$page, $revision_handle) { - $html = false; $pagename = $page->getName(); $count = count($this->parentobj->_wpagelist[$pagename]); return LinkURL(WikiURL($page, array('action' => 'BackLinks'), false), This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-03 16:12:36
|
Revision: 10416 http://sourceforge.net/p/phpwiki/code/10416 Author: vargenau Date: 2021-08-03 16:12:35 +0000 (Tue, 03 Aug 2021) Log Message: ----------- lib/plugin/WantedPages.php: fix $pagename variable Modified Paths: -------------- trunk/lib/plugin/WantedPages.php Modified: trunk/lib/plugin/WantedPages.php =================================================================== --- trunk/lib/plugin/WantedPages.php 2021-08-03 15:47:08 UTC (rev 10415) +++ trunk/lib/plugin/WantedPages.php 2021-08-03 16:12:35 UTC (rev 10416) @@ -205,7 +205,7 @@ { $pagename = $page_handle->getName(); $count = count($this->parentobj->_wpagelist[$pagename]); - return LinkURL(WikiURL($page, array('action' => 'BackLinks')), + return LinkURL(WikiURL($pagename, array('action' => 'BackLinks')), fmt("(%d Links)", $count)); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |