From: <var...@us...> - 2021-06-17 16:04:20
|
Revision: 10296 http://sourceforge.net/p/phpwiki/code/10296 Author: vargenau Date: 2021-06-17 16:04:14 +0000 (Thu, 17 Jun 2021) Log Message: ----------- Use same parameter name in subclasses Modified Paths: -------------- trunk/lib/plugin/GraphViz.php trunk/lib/plugin/Ploticus.php trunk/lib/plugin/RecentChangesCached.php trunk/lib/plugin/VisualWiki.php Modified: trunk/lib/plugin/GraphViz.php =================================================================== --- trunk/lib/plugin/GraphViz.php 2021-06-17 15:44:38 UTC (rev 10295) +++ trunk/lib/plugin/GraphViz.php 2021-06-17 16:04:14 UTC (rev 10296) @@ -166,7 +166,7 @@ * This gives an alternative text description of * the image. */ - function getAlt($dbi, $argstr, $request) + function getAlt($dbi, $argarray, $request) { return (!empty($this->_args['alt'])) ? $this->_args['alt'] : $this->getDescription(); Modified: trunk/lib/plugin/Ploticus.php =================================================================== --- trunk/lib/plugin/Ploticus.php 2021-06-17 15:44:38 UTC (rev 10295) +++ trunk/lib/plugin/Ploticus.php 2021-06-17 16:04:14 UTC (rev 10296) @@ -161,7 +161,7 @@ * This gives an alternative text description of * the image. */ - function getAlt($dbi, $argstr, $request) + function getAlt($dbi, $argarray, $request) { return (!empty($this->_args['alt'])) ? $this->_args['alt'] : $this->getDescription(); Modified: trunk/lib/plugin/RecentChangesCached.php =================================================================== --- trunk/lib/plugin/RecentChangesCached.php 2021-06-17 15:44:38 UTC (rev 10295) +++ trunk/lib/plugin/RecentChangesCached.php 2021-06-17 16:04:14 UTC (rev 10296) @@ -67,16 +67,16 @@ * better plugin methods. * * @param WikiDB $dbi - * @param string $args + * @param string $argarray * @param WikiRequest $request * @param string $basepage * @return mixed */ - protected function getHtml($dbi, $args, $request, $basepage) + protected function getHtml($dbi, $argarray, $request, $basepage) { $plugin = new WikiPlugin_RecentChanges(); - $changes = $plugin->getChanges($dbi, $args); - return $plugin->format($changes, $args); + $changes = $plugin->getChanges($dbi, $argarray); + return $plugin->format($changes, $argarray); /* $loader = new WikiPluginLoader(); return $loader->expandPI('<?plugin RecentChanges ' Modified: trunk/lib/plugin/VisualWiki.php =================================================================== --- trunk/lib/plugin/VisualWiki.php 2021-06-17 15:44:38 UTC (rev 10295) +++ trunk/lib/plugin/VisualWiki.php 2021-06-17 16:04:14 UTC (rev 10296) @@ -407,9 +407,8 @@ * Creates the text file description of the graph needed to invoke * <code>dot</code>. * - * @param string $filename + * @param string $tempfile * @param array $argarray - * @internal param string $filename name of the dot file to be created * @internal param float $width width of the output graph in inches * @internal param float $height height of the graph in inches * @internal param string $colorby color sceme beeing used ('age', 'revtime', @@ -419,10 +418,10 @@ * 'number': label by unique number * @return bool error status; true=ok; false=error */ - function createDotFile($filename = '', $argarray = array()) + function createDotFile($tempfile = '', $argarray = array()) { extract($argarray); - if (!$fp = fopen($filename, 'w')) + if (!$fp = fopen($tempfile, 'w')) return false; $fillstring = ($fillnodes == 'on') ? 'style=filled,' : ''; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |