From 9ca1395054481430c3dff61b0ce6f7778764c065 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Mon, 15 Jun 2009 02:48:40 +0000 Subject: [PATCH] Try to improve formatting of PHPdoc. --- lib/ajax/ajaxlib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ajax/ajaxlib.php b/lib/ajax/ajaxlib.php index da07735630..69cd9a6c49 100644 --- a/lib/ajax/ajaxlib.php +++ b/lib/ajax/ajaxlib.php @@ -66,10 +66,12 @@ function setup_core_javascript(page_requirements_manager $requires) { * one accessible via $PAGE->requires. * * Typical useage would be + *
  *     $PAGE->requires->css('mod/mymod/styles.css');
  *     $PAGE->requires->js('mod/mymod/script.js');
  *     $PAGE->requires->js('mod/mymod/small_but_urgent.js')->in_head();
  *     $PAGE->requires->js_function_call('init_mymod', array($data))->on_dom_ready();
+ * 
* * @copyright 2009 Tim Hunt * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later @@ -162,7 +164,7 @@ class page_requirements_manager { * Even if a particular style sheet is requested more than once, it will only * be linked to once. * - * @param string $stylesheet The path to the .js file, relative to + * @param string $stylesheet The path to the .css file, relative to * $CFG->dirroot / $CFG->wwwroot. No leading slash. For example * 'mod/mymod/styles.css'; * @param boolean $fullurl This parameter is intended for internal use only. -- 2.39.5