lang = $lang; // does not actually modify session because we do not use cookies here $sm = get_string_manager(); //TODO: this is a minimalistic help page, needs a lot more love $PAGE->set_url('/help.php'); $PAGE->set_pagelayout('popup'); // not really a popup because this page gets dispalyed directly only when JS disabled if ($ajax) { @header('Content-Type: text/plain; charset=utf-8'); } else { echo $OUTPUT->header(); } if ($sm->string_exists($identifier.'_hlp', $component)) { echo get_string($identifier.'_hlp', $component); } else { echo "
TODO: fix help for [{$identifier}_hlp, $component]
"; } if (!$ajax) { echo $OUTPUT->footer(); }