Minor fix: correct createUrl behaviour related to final /

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@215 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
mensonge 2009-01-06 14:57:07 +00:00
parent d453ece014
commit 26c2792d60

View File

@ -81,7 +81,11 @@ function createURL($page = '', $ending = '') {
if (!$cleanurls && $page != '') {
$page .= '.php';
}
return ROOT . $page .'/'. $ending;
if(strlen($ending)>0) {
return ROOT . $page .'/'. $ending;
} else {
return ROOT . $page;
}
}
/* Shorten a string like a URL for example by cutting the middle of it */