serendipity_parseFileName didn't evaluate the correct name/ext structure for files without extension
This commit is contained in:
@@ -666,9 +666,14 @@ function serendipity_fetchAuthor($author) {
|
|||||||
*/
|
*/
|
||||||
function serendipity_parseFileName($file) {
|
function serendipity_parseFileName($file) {
|
||||||
$x = explode('.', $file);
|
$x = explode('.', $file);
|
||||||
$suf = array_pop($x);
|
if (count($x)>1){
|
||||||
$f = @implode('.', $x);
|
$suf = array_pop($x);
|
||||||
return array($f, $suf);
|
$f = @implode('.', $x);
|
||||||
|
return array($f, $suf);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return array($file,'');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user