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:
parent
d453ece014
commit
26c2792d60
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user