summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-01-06 14:57:07 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-01-06 14:57:07 +0000
commit26c2792d60d4368213b479e91080644f04c07b4f (patch)
treefefdacf2a9d7d123446b4500a5001cdef7ba3e01
parentd453ece0147e7a3e04a8614da4a68071a04087f8 (diff)
downloadsemanticscuttle-26c2792d60d4368213b479e91080644f04c07b4f.tar.gz
semanticscuttle-26c2792d60d4368213b479e91080644f04c07b4f.tar.bz2
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
-rw-r--r--functions.inc.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/functions.inc.php b/functions.inc.php
index 3ee0e9b..48c7178 100644
--- a/functions.inc.php
+++ b/functions.inc.php
@@ -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 */