From 26c2792d60d4368213b479e91080644f04c07b4f Mon Sep 17 00:00:00 2001 From: mensonge Date: Tue, 6 Jan 2009 14:57:07 +0000 Subject: 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 --- functions.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 */ -- cgit v1.2.3-54-g00ecf