Permalink
Browse files

comment MDL-27024 Fixed up whitespace issues

  • Loading branch information...
1 parent 116a48b commit d664d673a7dc6e8326ea1945696f2b6a28c04c11 Sam Hemelryk committed Mar 30, 2011
Showing with 12 additions and 12 deletions.
  1. +12 −12 comment/lib.php
View
@@ -86,14 +86,14 @@ class comment {
* @var bool
*/
protected $notoggle = false;
-
+
/**
* If set to true comments are automatically loaded as soon as the page loads.
* Normally this happens when the user expands the comment section.
* @var bool
*/
protected $autostart = false;
-
+
// static variable will be used by non-js comments UI
private static $nonjs = false;
private static $comment_itemid = null;
@@ -187,12 +187,12 @@ public function __construct($options) {
} else {
$this->ignore_permission = false;
}
-
+
// setup notoggle
if (!empty($options->notoggle)) {
$this->set_notoggle($options->notoggle);
}
-
+
// setup notoggle
if (!empty($options->autostart)) {
$this->set_autostart($options->autostart);
@@ -311,34 +311,34 @@ public function get_nojslink(moodle_page $page = null) {
$link->remove_params(array('nonjscomment', 'comment_page'));
return $link;
}
-
+
/**
* Sets the value of the notoggle option.
- *
+ *
* If set to true then the user will not be able to expand and collase
* the comment section.
*
- * @param bool $newvalue
+ * @param bool $newvalue
*/
public function set_notoggle($newvalue = true) {
$this->notoggle = (bool)$newvalue;
}
-
+
/**
* Sets the value of the autostart option.
- *
+ *
* If set to true then the comments will be loaded during page load.
* Normally this happens only once the user expands the comment section.
*
- * @param bool $newvalue
+ * @param bool $newvalue
*/
public function set_autostart($newvalue = true) {
$this->autostart = (bool)$newvalue;
}
/**
* Initialises the JavaScript that enchances the comment API.
- *
+ *
* @param moodle_page $page The moodle page object that the JavaScript should be
* initialised for.
*/
@@ -369,7 +369,7 @@ public function initialise_javascript(moodle_page $page) {
public function output($return = true) {
global $PAGE, $OUTPUT;
static $template_printed;
-
+
$this->initialise_javascript($PAGE);
if (!empty(self::$nonjs)) {

0 comments on commit d664d67

Please sign in to comment.