Minor code improvement.
This commit is contained in:
@@ -1026,10 +1026,10 @@ class syntax_plugin_filelist extends DokuWiki_Syntax_Plugin {
|
|||||||
$url = $webdir.substr($filepath, strlen($basedir)).$urlparams;
|
$url = $webdir.substr($filepath, strlen($basedir)).$urlparams;
|
||||||
if ($ftp)
|
if ($ftp)
|
||||||
{
|
{
|
||||||
|
$url = str_replace('\\','/', $url);
|
||||||
if (strpos($url, 'http') === false) {
|
if (strpos($url, 'http') === false) {
|
||||||
$url = 'ftp:'.str_replace('\\','/', $url);
|
$url = 'ftp:'.$url;
|
||||||
} else {
|
} else {
|
||||||
$url = str_replace('\\','/', $url);
|
|
||||||
$url = str_replace('http','ftp', $url);
|
$url = str_replace('http','ftp', $url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user