From: <var...@us...> - 2014-10-16 09:43:00
|
Revision: 9271 http://sourceforge.net/p/phpwiki/code/9271 Author: vargenau Date: 2014-10-16 09:42:51 +0000 (Thu, 16 Oct 2014) Log Message: ----------- Remove unused function DataURL Modified Paths: -------------- trunk/lib/stdlib.php Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2014-10-15 17:11:30 UTC (rev 9270) +++ trunk/lib/stdlib.php 2014-10-16 09:42:51 UTC (rev 9271) @@ -251,16 +251,6 @@ return SERVER_URL . $url; } -function DataURL($url) -{ - if (preg_match('/^https?:/', $url)) - return $url; - $url = NormalizeWebFileName($url); - if (DEBUG and $GLOBALS['request']->getArg('start_debug') and substr($url, -4, 4) == '.php') - $url .= "?start_debug=1"; // XMLRPC and SOAP debugging helper. - return AbsoluteURL($url); -} - /** * Generates icon in front of links. * @@ -804,6 +794,9 @@ */ public $anchor; + public $_errors; + public $_warnings; + /** * @param mixed $name Page name. * WikiDB_Page, WikiDB_PageRevision, or string. @@ -833,8 +826,6 @@ if (strstr($url, '//')) { if ($moniker == 'Talk') $name = $name . SUBPAGE_SEPARATOR . _("Discussion"); - elseif ($moniker == 'User') - $name = $name; } else { $name = $url; } @@ -1768,6 +1759,7 @@ //$content = join("\n", $content); //$return_array = true; $wordcount = 0; + $new = array(); foreach ($content as $line) { $words = explode(' ', $line); if ($wordcount + count($words) > $n) { @@ -1919,7 +1911,7 @@ } /** - * @param var $needle + * @param mixed $needle * @param array $haystack one-dimensional numeric array only, no hash * @return integer * @desc Feed a sorted array to $haystack and a value to search for to $needle. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |