summaryrefslogtreecommitdiff
path: root/functions.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.inc.php')
-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 */