|
From: <var...@us...> - 2021-06-17 17:42:19
|
Revision: 10304
http://sourceforge.net/p/phpwiki/code/10304
Author: vargenau
Date: 2021-06-17 17:42:17 +0000 (Thu, 17 Jun 2021)
Log Message:
-----------
default arguments not needed
Modified Paths:
--------------
trunk/lib/plugin/CalendarList.php
trunk/lib/plugin/CreatePage.php
trunk/lib/plugin/DebugBackendInfo.php
trunk/lib/plugin/FullTextSearch.php
trunk/lib/plugin/ModeratedPage.php
trunk/lib/plugin/VisualWiki.php
trunk/lib/plugin/WantedPages.php
trunk/lib/plugin/WhoIsOnline.php
Modified: trunk/lib/plugin/CalendarList.php
===================================================================
--- trunk/lib/plugin/CalendarList.php 2021-06-17 17:36:01 UTC (rev 10303)
+++ trunk/lib/plugin/CalendarList.php 2021-06-17 17:42:17 UTC (rev 10304)
@@ -199,7 +199,7 @@
$end = $base + ($args['next_n_days'] * 24 * 3600.0);
} elseif ($args['last_n']) {
// get date for next nth event
- $end = $this->_count_events($dbi, $args['next_n'], 1);
+ $end = $this->_count_events($dbi, $args['next_n']);
} else {
// trick to get last day of requested month
$end = mktime(0, 0, -1, // h, m, s
Modified: trunk/lib/plugin/CreatePage.php
===================================================================
--- trunk/lib/plugin/CreatePage.php 2021-06-17 17:36:01 UTC (rev 10303)
+++ trunk/lib/plugin/CreatePage.php 2021-06-17 17:42:17 UTC (rev 10304)
@@ -157,6 +157,6 @@
$page->save($content, $version + 1, $meta);
}
}
- return HTML($request->redirect($url, true));
+ return HTML($request->redirect($url));
}
}
Modified: trunk/lib/plugin/DebugBackendInfo.php
===================================================================
--- trunk/lib/plugin/DebugBackendInfo.php 2021-06-17 17:36:01 UTC (rev 10303)
+++ trunk/lib/plugin/DebugBackendInfo.php 2021-06-17 17:42:17 UTC (rev 10304)
@@ -117,7 +117,7 @@
while ($rel = $relations->next())
$table->pushContent($this->_showhash(false, $rel));
}
- $linkdata = $backend->get_links($page, true);
+ $linkdata = $backend->get_links($page);
if ($linkdata->count())
$table->pushContent($this->_showhash("get_backlinks('$page')", $linkdata->asArray()));
Modified: trunk/lib/plugin/FullTextSearch.php
===================================================================
--- trunk/lib/plugin/FullTextSearch.php 2021-06-17 17:36:01 UTC (rev 10303)
+++ trunk/lib/plugin/FullTextSearch.php 2021-06-17 17:42:17 UTC (rev 10304)
@@ -209,7 +209,7 @@
{
$pagename = $page_handle->getName();
$count = count($this->parentobj->_wpagelist[$pagename]);
- return LinkURL(WikiURL($page_handle, array('action' => 'BackLinks'), false),
+ return LinkURL(WikiURL($page_handle, array('action' => 'BackLinks')),
fmt("(%d Links)", $count));
}
}
Modified: trunk/lib/plugin/ModeratedPage.php
===================================================================
--- trunk/lib/plugin/ModeratedPage.php 2021-06-17 17:36:01 UTC (rev 10303)
+++ trunk/lib/plugin/ModeratedPage.php 2021-06-17 17:42:17 UTC (rev 10304)
@@ -347,7 +347,7 @@
// timestamp,user(obj)+userid
// handle $moderated['data'][$id]['args']['action']
} else {
- return $this->approval_form($request, $args, $moderation, 'approve');
+ return $this->approval_form($request, $args, $moderation);
}
return '';
}
@@ -428,7 +428,7 @@
if ($moderation['args']['action'] == 'edit') {
$pagename = $moderation['args']['pagename'];
$p = $request->_dbi->getPage($pagename);
- $rev = $p->getCurrentRevision(true);
+ $rev = $p->getCurrentRevision();
$curr_content = $rev->getPackedContent();
$new_content = $moderation['args']['edit']['content'];
include_once 'lib/difflib.php';
Modified: trunk/lib/plugin/VisualWiki.php
===================================================================
--- trunk/lib/plugin/VisualWiki.php 2021-06-17 17:36:01 UTC (rev 10303)
+++ trunk/lib/plugin/VisualWiki.php 2021-06-17 17:42:17 UTC (rev 10304)
@@ -319,7 +319,7 @@
// false = get links from actual page
// true = get links to actual page ("backlinks")
- $backlinks = $page->getLinks(true);
+ $backlinks = $page->getLinks();
unset($bconnection);
$bconnection = array();
while ($blink = $backlinks->next()) {
Modified: trunk/lib/plugin/WantedPages.php
===================================================================
--- trunk/lib/plugin/WantedPages.php 2021-06-17 17:36:01 UTC (rev 10303)
+++ trunk/lib/plugin/WantedPages.php 2021-06-17 17:42:17 UTC (rev 10304)
@@ -205,7 +205,7 @@
{
$pagename = $page_handle->getName();
$count = count($this->parentobj->_wpagelist[$pagename]);
- return LinkURL(WikiURL($page, array('action' => 'BackLinks'), false),
+ return LinkURL(WikiURL($page, array('action' => 'BackLinks')),
fmt("(%d Links)", $count));
}
}
Modified: trunk/lib/plugin/WhoIsOnline.php
===================================================================
--- trunk/lib/plugin/WhoIsOnline.php 2021-06-17 17:36:01 UTC (rev 10303)
+++ trunk/lib/plugin/WhoIsOnline.php 2021-06-17 17:42:17 UTC (rev 10304)
@@ -87,7 +87,7 @@
function box($args = '', $request = null, $basepage = '')
{
if (!$request) $request =& $GLOBALS['request'];
- $stats = $this->getStats($request->_dbi, $request, 'summary');
+ $stats = $this->getStats($request->_dbi, $request);
return $this->makeBox(_("Who is Online"),
HTML(HTML::ul(HTML::li(
WikiLink(_("WhoIsOnline"), 'auto',
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|