[geeklog-cvs] geeklog: Don't add the #desc_xxx anchor when the documentation U...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Sep 19 08:17:31 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/cee325fef1c9
changeset: 7320:cee325fef1c9
user: Dirk Haun <dirk at haun-online.de>
date: Sat Sep 19 09:26:29 2009 +0200
description:
Don't add the #desc_xxx anchor when the documentation URL already contains a '#'
diffstat:
system/classes/config.class.php | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r f0488c63237c -r cee325fef1c9 system/classes/config.class.php
--- a/system/classes/config.class.php Mon Sep 14 21:44:12 2009 +0200
+++ b/system/classes/config.class.php Sat Sep 19 09:26:29 2009 +0200
@@ -943,7 +943,11 @@
}
if (! empty($descUrl)) {
- $retval = $descUrl . '#desc_' . $option;
+ if (strpos($descUrl, '#') === false) {
+ $retval = $descUrl . '#desc_' . $option;
+ } else {
+ $retval = $descUrl;
+ }
}
return $retval;
More information about the geeklog-cvs
mailing list