From: moodler Date: Mon, 6 Jan 2003 08:23:36 +0000 (+0000) Subject: Framed docs can now select a named anchor in a page X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=20f47494ae22fda00eeabc17c57f7f197177e12a;p=moodle.git Framed docs can now select a named anchor in a page --- diff --git a/doc/index.php b/doc/index.php index 2a5a302270..1e4d03b470 100644 --- a/doc/index.php +++ b/doc/index.php @@ -2,15 +2,20 @@ require("../config.php"); - optional_variable($file, ""); // docs file to view + optional_variable($file, ""); // docs file to view optional_variable($frame, ""); // docs file to view - optional_variable($lang, ""); // override current language + optional_variable($sub, ""); // sub-section (named anchor) + optional_variable($lang, ""); // override current language if (!empty($lang)) { $SESSION->doclang = $lang; save_session("SESSION"); } + if (!empty($sub)) { + $sub = "#$sub"; + } + if (empty($file)) { $include = false; if (empty($frame)) { @@ -38,6 +43,6 @@ - "> + ">