From: <var...@us...> - 2016-01-22 17:06:41
|
Revision: 9768 http://sourceforge.net/p/phpwiki/code/9768 Author: vargenau Date: 2016-01-22 17:06:38 +0000 (Fri, 22 Jan 2016) Log Message: ----------- Remove unused arguments Modified Paths: -------------- trunk/lib/plugin/IncludePage.php trunk/lib/stdlib.php Modified: trunk/lib/plugin/IncludePage.php =================================================================== --- trunk/lib/plugin/IncludePage.php 2016-01-22 17:04:02 UTC (rev 9767) +++ trunk/lib/plugin/IncludePage.php 2016-01-22 17:06:38 UTC (rev 9768) @@ -201,7 +201,7 @@ } } if ($sections) { - $c = extractSections($sections, $c, $pagename, $quiet, 1); + $c = extractSections($sections, $c); } if ($lines) { $c = array_slice($c, 0, $lines); Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2016-01-22 17:04:02 UTC (rev 9767) +++ trunk/lib/stdlib.php 2016-01-22 17:06:38 UTC (rev 9768) @@ -1821,7 +1821,7 @@ } // Extract the first $sections sections of the page -function extractSections($sections, $content, $page, $quiet = false, $sectionhead = false) +function extractSections($sections, $content) { $mycontent = $content; @@ -1839,8 +1839,7 @@ $section = $match[2]; // Strip trailing blanks lines and ---- <hr>s $text = preg_replace("/\\s*^-{4,}\\s*$/m", "", $match[3]); - if ($sectionhead) - $text = $match[1] . $section . "\n" . $text; + $text = $match[1] . $section . "\n" . $text; $result .= $text; $mycontent = explode("\n", $match[4]); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |