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
1 changed files with 5 additions and 1 deletions
|
@ -81,7 +81,11 @@ function createURL($page = '', $ending = '') {
|
||||||
if (!$cleanurls && $page != '') {
|
if (!$cleanurls && $page != '') {
|
||||||
$page .= '.php';
|
$page .= '.php';
|
||||||
}
|
}
|
||||||
|
if(strlen($ending)>0) {
|
||||||
return ROOT . $page .'/'. $ending;
|
return ROOT . $page .'/'. $ending;
|
||||||
|
} else {
|
||||||
|
return ROOT . $page;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Shorten a string like a URL for example by cutting the middle of it */
|
/* Shorten a string like a URL for example by cutting the middle of it */
|
||||||
|
|
Loading…
Reference in a new issue