[Kos-cvs] kos-web/include toc.php,1.12,1.13
thomas at kos.enix.org
thomas at kos.enix.org
Tue Dec 27 15:45:25 CET 2005
Update of /var/cvs/kos/kos-web/include
In directory the-doors:/tmp/cvs-serv15152
Modified Files:
toc.php
Log Message:
Fix TOC stuff.
Index: toc.php
===================================================================
RCS file: /var/cvs/kos/kos-web/include/toc.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- toc.php 5 Jan 2005 21:44:28 -0000 1.12
+++ toc.php 27 Dec 2005 14:45:23 -0000 1.13
@@ -33,10 +33,13 @@
$url = $url_array[0];
+ if (strncmp ($url, "http://", 7) != 0)
+ $url = $topsrcdir . "/$url?lang=$lang$anchor;
+
if($current == $toc_entry)
- echo " <a class=\"current_topic\" href=\"" . $topsrcdir . "/$url?lang=$lang$anchor\">$title</a><br/>\n";
+ echo " <a class=\"current_topic\" href=\"" . $url . \">$title</a><br/>\n";
else
- echo " <a class=\"other_topic\" href=\"" . $topsrcdir . "/$url?lang=$lang$anchor\">$title</a><br/>\n";
+ echo " <a class=\"other_topic\" href=\"" . $url . \">$title</a><br/>\n";
}
More information about the Kos-cvs
mailing list